httpbin - 协议调试工具
httpstatuses - 协议状态码查询
httpie - cURL-like tool for humans
Fiddler
Livid
275.76D
573.32D
V2EX  ›  HTTP

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

  •  
  •   Livid ·
    PRO
    · Apr 25, 2012 · 4564 views
    This topic created in 5130 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   ·   5721 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 05:59 · PVG 13:59 · LAX 22:59 · JFK 01:59
    ♥ Do have faith in what you're doing.