[SOLVED] Cache everything but the html itself
i
Hi all, I have a Umbraco v7 website we recently took over, and I implemented caching using the Cache-Control header in the web.config. However this seems to be a bit too agressive. I need to cache everything, but the request to the page itself. So that if they update something in the backoffice, the page itself doesnt get cached. How can I achieve this the easiest, preferably using the web.config? This is my current setup:
Copy code
<httpProtocol>
  <customHeaders>
    <remove name="Server"/>
    <remove name="X-Powered-By"/>
    <remove name="X-Content-Type-Options"/>
    <remove name="Strict-Transport-Security"/>
    <remove name="Cache-Control"/>
    <remove name="X-XSS-Protection"/>
    <remove name="X-Frame-Options"/>
    <remove name="Content-Security-Policy"/>
    <add name="X-Content-Type-Options" value="nosniff"/>
    <add name="Strict-Transport-Security" value="max-age=31536000"/>
    <add name="Cache-Control" value="max-age=31536000"/>
  </customHeaders>
</httpProtocol>
I figured this is not the problem, all requests are served from memroy, apart from the initial HTML request. I have to look somewhere else!