Chrome doesn't send “If-Modified-Since”

前端 未结 5 1182
终归单人心
终归单人心 2021-02-15 19:09

I want browsers to always add (except first time) \"If-Modified-Since\" request header to avoid unnecessary traffic.

Response headers are:

Accept-Ranges:         


        
5条回答
  •  清酒与你
    2021-02-15 20:16

    I've been chasing this issue for some time, thought I'd share what I found.

    "The rule is actually quite simple: any error with the certificate means the page will not be cached."

    https://code.google.com/p/chromium/issues/detail?id=110649

    If you are using a self-signed certificate, even if you tell Chrome to add an exception for it so that the page loads, no resources from that page will be cached, and subsequent requests will not have an If-Modified-Since header.

提交回复
热议问题