Tuesday, April 8, 2014

How to enable static content caching in ASP.NET?

Add following configuration into web.config file

      
    
Reference:
http://www.iis.net/configreference/system.webserver/staticcontent/clientcache


When run pagespeed, sometime will get following warning:
Leverage browser caching
Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over


Enable ASP.NET static content cache to improve speed

No comments:

Post a Comment