azure logo

How to enable Browser Cache max age in a web.config file

Add the following lines to the web.config file and this will allow browser cache to work. Typically used when setting the W3 Total Cache is enabled in the Broswer Cache section but the favicon or ico files are not being picked up on or Google Pagespeed insights.


    <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" />