How do I enable gzip on Dreamhost?


#1

I would like to compress all css and js on my Dreamhost site,

I have found suggestions on the web but none of them work.

Does anyone have a working example of gzip running on a Dreamhost site?


#2

Here’s the previous discussion of this topic and options: Is javascript compressed by default on the server?

The DH help article on GZIP compression: https://help.dreamhost.com/hc/en-us/articles/360005040932-How-do-I-enable-GZIP-Compression-


#3

Just add this line to your .htaccess file:

AddOutputFilterByType DEFLATE text/html text/css text/plain image/gif text/javascript application/javascript application/x-httpd-fastphp


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.