过期标题每次刷新都会显示新时间

发布于 2025-01-04 12:56:00 字数 575 浏览 1 评论 0原文

请参阅此处

每次刷新页面时, headers 更改为 *当前时间 + 1 年”

是否缓存?

我的 nginx 配置具有以下缓存设置:

location ~
\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pp$
{
    expires 31536000s;
    add_header Pragma "public";
    add_header Cache-Control "max-age=31536000, public, must-revalidate, proxy-revalidate";
}

Please see HERE

Everytime I refresh the page, the Expires headers changes to *Current Time + 1 year"

Is it cacheing or not ?

My nginx config has the following cache settings:

location ~
\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pp$
{
    expires 31536000s;
    add_header Pragma "public";
    add_header Cache-Control "max-age=31536000, public, must-revalidate, proxy-revalidate";
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小傻瓜 2025-01-11 12:56:00

这是响应标头的输出

 Expires:Sun, 10 Feb 2013 04:14:33 GMT

,状态代码是

 Status Code:304 Not Modified

此图像已缓存。

This is the Output of response header

 Expires:Sun, 10 Feb 2013 04:14:33 GMT

And status code is

 Status Code:304 Not Modified

This image is cached.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文