Server static resources so browsers can do conditional GETs
ericf opened this issue · 2 comments
ericf commented
The website is serving static resources with ETag
headers, but also setting Cache-Control max-age: 0
which forces the browser to always re-download assets instead of performing conditional GET
requests.
drewfish commented
Yslow can be a good tool to highlight stuff like this.
ericf commented
This appears to be a bug in Chrome. Safari and Firefox do the correct thing — perform a conditional GET
request — and all our static assets become 304s.
If/when we implement fingerprinting, then we can generate unique URLs for static assets and set large max-age
values. Closing for now…