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

Add "no cache" headers to manifest response #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

btucker
Copy link

@btucker btucker commented Mar 3, 2015

https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache:

It's a good idea to set expires headers on your web server for *.appcache files to expire immediately. This avoids the risk of caching manifest files.

This PR adds Expires, Cache-Control, & Pragma headers to prevent browsers (specifically Firefox) from caching the manifest file.

It's possible this is not always desired behavior, so this should perhaps be optional. Opening PR to start discussion.

Firefox has a tendency to cache the manifest otherwise and not re-request it.
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.

1 participant