Is it possible to set the cache for
CSS files only based on some logic?
When the url of the assets always changes (e.g
SignUp.[versiontoken].css when the content is modified) then the cache settings can be (1 year)
When the url is static (e.g
/ui/some.css) then the cache should be short (
For the first scenario, I think is enough to add
Cache-control in the
web.config, but for the second one, what should I do?
<httpProtocol> <customHeaders> <remove name="Cache-Control" /> <add name="Cache-Control" value="public, max-age=31536000" /> </customHeaders> </httpProtocol>
Project: Sitecore 9.3 based on Helix architecture, no SXA