Enable Compression on GoDaddy Shared Hosting

Pagespeed telling you that your site needs to enable compression? Searched the web and can’t find anything that will work with GoDaddy shared hosting?

Just paste the following code into your .htaccess file:

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE image/svg+xml

That’ll cover you for everything from HTML to CSS to Javascript to SVG files.

Want to fix that Leverage browser caching message with GoDaddy, too?

Up Next: What You Get for $300 in the World of Web Design