WordPress.org

Forums

The best way to GZIP (1 post)

  1. montygothic
    Member
    Posted 3 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags