gpt4 book ai didi

firefox - mozilla firefox 忽略缓存控制 header

转载 作者:行者123 更新时间:2023-12-04 17:34:40 25 4
gpt4 key购买 nike

我在我的应用程序中加载了一些存储在谷歌云上的缩略图图像,我已经公开了缩略图对象并设置了 cache-control: public, max-age:2628000,这看起来在 chrome 上工作时,我看到图像正在从缓存中加载,但在 mozilla firefox 上这不起作用,每当我重新加载页面时,我总是看到图像是从服务器请求的。我还检查了我没有在开发人员工具中检查 disable cache这是截图

enter image description here

每次我看到传输的字节数和图像都没有从缓存中加载。

如能提供任何帮助,我们将不胜感激。谢谢。

最佳答案

对于可能偶然发现这篇文章的任何人,我发现 mozilla 确实在缓存图像并从缓存中显示它。

如果您打开一个页面,然后在相同或新标签页中复制/粘贴相同的 url,您将观察到 mozilla 显示图像的缓存版本,当您重新加载页面时,将从服务器请求图像.

我在这里找到了我的帖子的答案 Is Chrome ignoring Cache-Control: max-age? ,请阅读此内容,因为它在此处有更详细的解释。

关于firefox - mozilla firefox 忽略缓存控制 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57161405/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com