This prevents caching index.html across deploys so users get the latest
index.html and fingerprinted assets.
index.html was being cached so that after a deploy you would receive a cached file. It would require a full page refresh to get the latest code. I've been running this change in production for a while, and it solves the problem. expires -1correctly sets Cache-Control: no-cache.
This prevents caching
index.html
across deploys so users get the latestindex.html
and fingerprinted assets.index.html
was being cached so that after a deploy you would receive a cached file. It would require a full page refresh to get the latest code. I've been running this change in production for a while, and it solves the problem.expires -1
correctly setsCache-Control: no-cache
.