Skip to content
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

mtime comparison checks for statically pre-compressed content? #56

Open
mqudsi opened this issue Jul 21, 2017 · 2 comments
Open

mtime comparison checks for statically pre-compressed content? #56

mqudsi opened this issue Jul 21, 2017 · 2 comments

Comments

@mqudsi
Copy link

mqudsi commented Jul 21, 2017

Is there any way to include mtime comparisons if brotli_static is set to auto such that if the .br file is older than the original, it isn't used?

We've developed an open-source tool to aid in static-compression of web content, (github link) and we've found that setting the mtime on the .br or .gz copy to match the source mtime is a good way of keeping cached content up-to-date without re-caching everything. It would be great if, should one update a resource and forget to update the cached copy, ngx_brotli did not serve the outdated version.

Thanks!

@eustas
Copy link
Collaborator

eustas commented Sep 3, 2019

Will try. The thing is - we should try to avoid accessing the file system unless it is strictly necessary.

@vphantom
Copy link

(This seems related to pull request #111 btw.)

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

No branches or pull requests

3 participants