Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex 22 posts 105 karma points
    Feb 27, 2020 @ 16:09
    Alex
    0

    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?

  • Alex 22 posts 105 karma points
    Feb 27, 2020 @ 16:30
    Alex
    100

    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

Please Sign in or register to post replies

Write your reply to:

Draft