After Google announcing speed as the matter of page rank all are on the run to do better for there sites. Browser caching is one of the main thing. Browser caching is all about  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 the network.

I was so keen to enable  Browser Caching on Godaddy Shared Hosting for techgurulive. I was actually checking for various options and found that we can do it by adding a few lines in the .htaccess file. you can just copy and paste the following code on your .htaccess file.

<FilesMatch "\.(jpg|jpeg|png|gif|css)$">
Header set Cache-Control “max-age=3600, public”

when you paste this code be make sure to delete double quote and put it again.


Post By Editor (2,827 Posts)

Website: →