How to enable Browser Caching on Godaddy Shared Hosting

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”
</FilesMatch>

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

Enjoy


11 Responses to “How to enable Browser Caching on Godaddy Shared Hosting”


Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>