formatjs/formatjs-site

Server static resources so browsers can do conditional GETs

ericf opened this issue · 2 comments

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.

Yslow can be a good tool to highlight stuff like this.

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…