I am looking for a way to set cache-control: public for Umbraco pages.
I am trying to setup CDN for a website, and it works fine for all resources except the Umbraco page.
After some investigation and help on Stackoverflow, I believe it is due to cache-control settings.
Is it any Umbraco configuration that controls cache-control? How can I set it to the public?
Setting Cache-control: public for Umbraco website
I am looking for a way to set cache-control: public for Umbraco pages. I am trying to setup CDN for a website, and it works fine for all resources except the Umbraco page. After some investigation and help on Stackoverflow, I believe it is due to cache-control settings.
Is it any Umbraco configuration that controls cache-control? How can I set it to the public?
Actually I found that I have to overwrite the controller to do this. https://our.umbraco.com/Documentation/Reference/Routing/custom-controllers In my controller, I just add [outputcache] attribute and it works
is working on a reply...