Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的一个网站上使用 nanoc。我想知道有没有办法为网站做一些好的缓存。因为每次我更新页面时,我都需要硬刷新或刷新几次才能在浏览器上更新更改。
我应该怎么做才能让页面在第一次刷新后立即加载当前内容?
谢谢
在我看来,这不是一个 nanoc 问题,而是更多与您的 Web 服务器或浏览器的配置相关的问题。仔细检查您的 ETag、Last-Modified 和 Cache-Control 标头。如果我没记错的话,Firefox(仍然)会积极缓存,所以这可以解释你的问题。