【问题标题】:jQuery served from Google's CDN seems to have bad expires headers从 Google 的 CDN 提供的 jQuery 似乎有错误的过期标头
【发布时间】:2011-11-29 23:10:18
【问题描述】:

http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js

Age:538083
Cache-Control:public,max-age=31536000
Content-Encoding:gzip
Content-Length:33321
Content-Type:text/javascript; charset=UTF-8
Date:Wed, 23 Nov 2011 17:39:54 GMT
Expires:Wed, 23 Nov 2011 17:39:54 GMT                  <-- very strange
Last-Modified:Thu, 10 Nov 2011 18:58:43 GMT
Server:sffe
Vary:Accept-Encoding
X-Content-Type-Options:nosniff
X-XSS-Protection:1; mode=block

今天是 11 月 29 日,为什么我会收到 6 天前的“过期”标题?

【问题讨论】:

  • 过去的Expires 不如过去的Date 有趣。

标签: jquery cdn


【解决方案1】:

看起来是这样的!

请注意,他们设置了 Cache-Control: max-age 参数,该参数将覆盖任何支持 HTTP/1.1 的浏览器中的 Expires 标头,所以不要不要太担心!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-31
    • 1970-01-01
    • 2016-04-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多