Posted By

depiction on 06/23/11


Tagged


Versions (?)

Cache Files in IIS - web.config


 / Published in: Other
 

URL: http://www.galcho.com/Blog/PermaLink.aspx?guid=490f3c31-1815-40fc-a871-5d6899fa35e0

  1. <location path="MyWebsite">
  2. <system.webServer>
  3. <caching>
  4. <profiles>
  5. <add extension=".html" policy="CacheUntilChange" kernelCachePolicy="DontCache" location="Client" />
  6. <add extension=".htm" policy="CacheUntilChange" kernelCachePolicy="DontCache" location="Client" />
  7. <add extension=".gif" policy="CacheUntilChange" kernelCachePolicy="DontCache" location="Client" />
  8. <add extension=".js" policy="CacheUntilChange" kernelCachePolicy="DontCache" location="Client" />
  9. <add extension=".css" policy="CacheUntilChange" kernelCachePolicy="DontCache" location="Client" />
  10. <add extension=".jpg" policy="CacheUntilChange" kernelCachePolicy="DontCache" location="Client" />
  11. <add extension=".jpeg" policy="CacheUntilChange" kernelCachePolicy="DontCache" location="Client" />
  12. <add extension=".zip" policy="CacheUntilChange" kernelCachePolicy="DontCache" location="Client" />
  13. <add extension=".rar" policy="CacheUntilChange" kernelCachePolicy="DontCache" location="Client" />
  14. </profiles>
  15. </caching>
  16. </system.webServer>
  17. </location>

Report this snippet  

You need to login to post a comment.