Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Are these the right settings for browser chache and compression?

$
0
0
I need to know if the settings below are correct for "leverage browser cache" and File compression (gzip). I use Google developer tools on my host and it gives a nice score of 96 out of 100! yes but the story does not end there as soon as i upload to host I get 78 out of 100, and the readings about compression and brower cache come back, maybe some hosting settings? Anyway code: <!-- BROWSER CACHE --> <caching> <profiles> <add extension=".png" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" /> <add extension=".jpg" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" /> <add extension=".gif" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" /> <add extension=".css" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" /> <add extension=".cshtml" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" /> <add extension=".js" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" /> </profiles> </caching> <!-- END CACHE--> <!-- COMRPESSION --> <staticContent> <remove fileExtension=".js" /> <mimeMap fileExtension=".js" mimeType="text/javascript" /> <!-- I missed CSS out--> <mimeMap fileExtension=".cshtml" mimeType="text/html" /> <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" /> </staticContent> <httpProtocol allowKeepAlive="true" /> <!-- END COMPRESSION--> OK I missed the css one out because everytime I added that it broke my website up :(. (All the styles and everything I actually don't even know what is. Copied most of the code from internet and I used IIS7 GUI to configure it :). Settings OK? Thanks Asim

Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>