How to make gzip work on 1and1 shared host WordPress site

前端 未结 6 2060
温柔的废话
温柔的废话 2021-01-05 02:15

YSlow is telling me that my css should be compressed, but after several hours of tinkering, I cannot for the life of me get gzip to work for my website. At this point, I\'m

6条回答
  •  青春惊慌失措
    2021-01-05 02:49

    You can enable compression by adding this code into your .htaccess file :

    
    
    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml image/svg+xml image/x-icon text/css application/x-javascript application/javascript application/x-httpd-php application/x-httpd-fastphp application/x-httpd-eruby 
    
    
    

提交回复
热议问题