Umbraco Cloud CDN Caching and Cache Control Header...
# help-with-umbraco
d
Hi there, you need to configure a cache profile and apply it to the controllers for the pages that you wish to cache. You can find out more about cache profiles here: https://learn.microsoft.com/en-us/aspnet/core/performance/caching/response?view=aspnetcore-8.0 For caching on a CDN, you should configure a "public" cache directive
j
But still, nothing.... everything shows as "no-cache"
d
It looks like you might be looking at your request headers and not at your response headers. You should have a look at your response headers. The screenshot in your initial post is of the request headers
j
I WAS looking at the request headers by mistake. However, the response header was only present for images that passed through ImageSharp, an nothing else. I just ended up hard setting it in the web.config. I found no other way that would populate the Cache-Control.
14 Views