V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
httpbin - 协议调试工具
httpstatuses - 协议状态码查询
httpie - cURL-like tool for humans
Fiddler
Livid
267.72D
569.94D
V2EX  ›  HTTP

如果 header 中已经设置了 Cache-Control 头,那么其实也可以不用设置 Expires?

  •  
  •   Livid ·
    PRO
    · Apr 25, 2012 · 4529 views
    This topic created in 5120 days ago, the information mentioned may be changed or developed.
    Expires 在哪些情况下是必须的呢?
    2 replies    1970-01-01 08:00:00 +08:00
    fsw90628
        1
    fsw90628  
       Apr 25, 2012   ❤️ 3
    推荐:
    https://developers.google.com/speed/docs/best-practices/caching

    引用:
    It is redundant to specify both Expires and Cache-Control: max-age, or to specify both Last-Modified and ETag.
    luser
        2
    luser  
       Apr 25, 2012
    Expires支持更广泛 印象中cache-control是http1.1新加的 详见rfc2616
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2454 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 02:39 · PVG 10:39 · LAX 19:39 · JFK 22:39
    ♥ Do have faith in what you're doing.