Override the "cache-control" values in a HTTP response Override the "cache-control" values in a HTTP response google-chrome google-chrome

Override the "cache-control" values in a HTTP response


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.