gentba
Last Updated: February 25, 2016
·
2.821K
· kjana83

Static files caching configure through Web.Config

Through web.config you can request proxy caching for the static files. Best policy to keep the files until gets changed. This increases the performance not to download every time.

<system.webServer>
    <caching enabled="true" enableKernelCache="true">
      <profiles>
        <add extension=".html" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange"/>
        <add extension=".css" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange"/>
        <add extension=".js" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange"/>
      </profiles>
    </caching>
Say Thanks
Respond