Override the “cache-control” values in a HTTP response

后端 未结 1 1352
花落未央
花落未央 2021-02-15 18:16

I have a web page that returns the following header when I access material:

HTTP/1.1 200 OK
Date: Sat, 29 Jun 2013 15:57:25 GMT
Server: Apache
Content-Length: 22         


        
相关标签:
1条回答
  • 2021-02-15 19:08

    I have recently spent some hours on trying to get a file cached, and discovered that the chrome.webRequest and chrome.declarativeWebRequest APIs cannot force resources to be cached. In no way.

    The Cache-Control (and other) response headers can be changed, but it will only be visible in the getResponseHeader method. Not in the caching behaviour.

    0 讨论(0)
提交回复
热议问题