最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Cloudflare caching behavior regarding index.html file - Stack Overflow

programmeradmin1浏览0评论

My origin server is sending Cache-Control: no-store, max-age=0 with my index.html. Cloudflare has all the defaults untouched(Edge Cache TTL & Browser Cache TTL). But I am getting some feedback from users that app is crashing due to old javascript bundle being requested after release (but not always and not all cleints), which can only happen when old index.html is served or retrieved from browser cache. I can not ask users for the headers they are getting with html. But I always get the correct Cache-control header with html which tells not to cache the file (no-store)

The question: Is it possible that default cloudflare settings are overriding Cache-control for html ? But if so I would be facing the same issue after every deploy.

发布评论

评论列表(0)

  1. 暂无评论