Support » Fixing WordPress » The best way to GZIP

  • Hi,

    Do you agree that this is the best way apply GZIP functionality, or would you recommend a plugin:

    If you want to enable GZIP, in your WordPress installation directory put the following few lines in the .htaccess file:

    <IfModule mod_deflate.c>
     AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
     AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml
     AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
     AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
     AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
     AddOutputFilterByType DEFLATE font/truetype font/opentype
    </IfModule>
  • The topic ‘The best way to GZIP’ is closed to new replies.