Monday, January 14, 2013

Enable Leverage Browser Caching on GoDaddy Hosted site

q: The customer has a site hosted with GoDaddy.  They recently ran Google's PageSpeed against the site.  The extension suggested leveraging Browser Caching.

a: We will provide answers for a few hosted solutions to save time:

  • For IIS
    • Select the Site on the left.
    • Double-Click "HTTP Response Headers" in the middle
    • Click "Set Common Headers" on the right
    • Check (X) Expire Web Content
    • Check (X) After 7 Days (Google Recommended)


  • For Apache
    • edit the .htaccess file to include these lines for 1 day
<FilesMatch ".(jpg|jpeg|png|gif|css|js|ico)$">
Header set Cache-Control "max-age=86400, public"
</FilesMatch>