I'm having a problem where IIS is sending the max age for .aspx pages which is causing all kinds of weirdness in our application. The original goal was to enable caching for static content but we noticed that our ASPX pages were also being cached which we don't want. I enabled the caching months back and don't remember exactly how I set it up.
Here are some things I've tried.
- I have adjusted the Common Headers for the site in question and disabled Expire Web Content.
- I had found a max-age set in the applicationHost.config file on the httpCompression node. Removing it however didn't stop it from being set.
- I created a new website on the same web server with a sample page and it is also sending the max-age so it feels like a global setting somewhere.
I'm verifying the max-age and the page being loaded from cache using Chrome's Dev Tools and the network tab. The initial page load is a fresh copy and if I click a link on the page that takes me back to the same page I'm already on this load is from Cache.