I currently using k12 with portal engine mode. I using web.config to set cache=control header but i have a problem when try to remove 'cache-control: no-cache' header but it doesn't effect Here is my web.config
<system.webServer> <httpProtocol> <customHeaders> <remove name="Cache-Control"/> <add name="Cache-Control" value="max-age=2592000" /> </customHeaders> </httpProtocol> </system.webServer>
Is there way to solve this? by using code behind/cms setting?
Add below Key into web.config under <system.webServer> and check it.
<modules runAllManagedModulesForAllRequests="true">
Unlucky, it's already exist in my config @vasu yerramsetti
I found my problem. Our team member added other config like
<caching> <profiles> <remove extension=".aspx" /> <add extension=".css" policy="CacheUntilChange" kernelCachePolicy="DontCache" /> </profiles> </caching>
Please, sign in to be able to submit a new answer.