Skip to content

Simplified code#10

Open
KirbyDE wants to merge 7 commits intoticktackk:developfrom
KirbyDE:develop
Open

Simplified code#10
KirbyDE wants to merge 7 commits intoticktackk:developfrom
KirbyDE:develop

Conversation

@KirbyDE
Copy link
Copy Markdown

@KirbyDE KirbyDE commented Oct 22, 2021

The view extension classes backup the attachment entity to a pseudo global and an event listener that is being called for every page view is used to read the attachment entity when the app finishes in order to set the Cache-Control header accordingly.

I've removed the event listener as well as the pseudo-global class and put all necessary code into the AttachmentView trait.

This does work just fine for me and seems to be a lot easier than the current approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants