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.
嗨,我正在使用 squid 来加速 wordpress 的安装(在 lighty 上运行)。
不幸的是,鱿鱼似乎获得了太多的未命中。
我认为这取决于轻量随每个请求发送的 Vary: Cookie 标头。
如何删除该标题?
如果不同的用户有可能根据他们的 cookie 获得不同的页面,那么即使以较低的命中率为代价,您也希望在其中包含 Vary: Cookie 标头。否则,用户 X 可能会获得用户 Y 的缓存页面。此标头是否设置在静态内容(即图像、.js 等)以及页面 HTML 上?