-
Notifications
You must be signed in to change notification settings - Fork 7
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
nginx: add Cache-Control header #791
Conversation
Deployment previews on netlify for branch
|
I would think we still need to set different values for assets that are not
|
I wonder if we should lower the |
A cursory check tells me all assets that are handled by the Vue App are revisioned. We do load some stuff from GCS as well, but those aren't affected by this change anyways. |
Indeed! I didn't know this, amazing. In that case we should be good, thanks for mentioning this |
Unfortunately I was wrong and we're serving an unrevisioned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well for me when testing this locally.
On subsequent loads, index.html
and config.js
will be requested from the server, yielding a 304 response, all other assets will skip the request, reading from disk cache.
When adding arbitrary changes, I will the correct version after reload.
https://phabricator.wikimedia.org/T331423
Adds the
Cache-Control
header to the nginx response. Forces revalidation forindex.html