Perf/http cache opcache - #215
Open
novashdima wants to merge 2 commits into
Open
Conversation
- fileDownload: emit ETag (mtime+size) and Last-Modified for files served via the download/proxy API and answer If-None-Match / If-Modified-Since with a bodyless 304 - Cache-Control "private, no-cache": browsers keep a copy but always revalidate, so previews stay fresh while repeated views of unchanged files cost only a header exchange - generated archives (zipnload) keep the old headers: a one-off tmp file has nothing to revalidate - Docker: install and enable opcache for the built-in server; the app is a single ~1.5 MB generated PHP file that was re-parsed on every request without it Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Owner
|
Thanks for the contribution, this looks good to me. I will merge it once I merged my own branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
perf: HTTP conditional requests for downloads, opcache in Docker
served via the download/proxy API and answer If-None-Match /
If-Modified-Since with a bodyless 304
revalidate, so previews stay fresh while repeated views of unchanged
files cost only a header exchange
file has nothing to revalidate
is a single ~1.5 MB generated PHP file that was re-parsed on every
request without it (opcache itself is compiled into PHP statically
since 8.5, nothing to install)