New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Pragma headers in file_download.php #1950
Conversation
As this is the only place where |
I was working on the caching to leverage the fact that attachments are never updated and came up with the following which reduces requests to server and works really well:
|
@atrol done |
@vboctor I'm fine with that although I did not actually test it, but this change is outside of this PR's scope so please open a new issue on the tracker and a separate PR with your proposed fix. |
@dregad I just did some testing, it works well for the download scenario, but not the preview scenario, since a unique security token is added to the preview URLs, which cause it not to cache. For the preview scenario to work, we will have to have an alternative for I agree it is outside the scope of this PR. |
@atrol without feedback from you since I pushed it last week, I assume you're OK with the commit removing allow_file_cache config. |
It is a deprecated HTTP/1.0 thing that should be replaced with a Cache-Control header. Additionally we use it in an incorrect way, as the directive is only defined in a request context (not response). This was implemented as a workaround for an Internet Explorer bug, and we don't support this browser anymore. Fixes #33007
It was used for Internet Explorer compatibility, and we don't support this browser anymore. Fixes #33007
Issue #33007
3e67abb
to
20518ba
Compare
Fixes #33007