We have a conventional content website that is deployed on netlify. By design, practically all the assets excepting the HTML files, are immutable. I am trying to configure the headers in netlify.toml to set a longer max-age for all jpg files in the directory tree (dozens of them). I tried the following
for = “*.jpg”
X-Frame-Options = “DENY”
X-XSS-Protection = “1; mode=block”
Cache-Control = "public max-age=604800"
However, when I look in Chrome Dev Tools for the response headers, I am still seeing the standard netlify cache-control headers.
This seems like a common scenario, but I couldn’t find anything about it in the support tickets.
Here is the URL