Initial Request
Second Request
I am using a node module(express-cache-ctrl) to enable caching on a a proxy .
app.use(cache.public(3600));
My static assets have a Cache-control header on them with max-age . I am unable to figure out why they reload on a refresh and not served from browser-cache .
Edit : `
var onProxyRes = function(proxyRes, req, res) {
if ( proxyRes.headers["content-type"] == "text/css" ||
proxyRes.headers["content-type"] == "application/javascript") {
proxyRes.headers["Cache-Control"] = "public, max-age=86400";
}
//add something here to modify proxy response };` Tried manually adding caching header on proxy response also doesn't cache assets
Cache-Controlheader at the original server and try again?