Best plugin for gzip compression with wordpress blog

3 replies
Any one can suggest best plugin for gzip compression with wordpress blog. As I want to apply to my website Rejionline.net - Technology blog and PHP freelance seems very slow at first loading....
#blog #compression #gzip #plugin #wordpress
  • Profile picture of the author rodvdka
    Do you host the pages yourself or via shared hosting provider?

    Generally, the server will do GZIP compression automatically? If you can update the server yourself I recommend getting Google Pagespeed which you can recompile into Nginx. If you host using Apache, I am sure there is a port you can just import. This makes your pages fly.
    {{ DiscussionBoard.errors[8414275].message }}
  • Profile picture of the author RobinInTexas
    It's done on the server, not by wordpress.

    Add the following to your .htaccess file before # BEGIN WordPress

    Code:
    # compress text, html, css, xml, javascript:
    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
    If that doesn't work, you need to check with your hosting, they need to have Apache set to allow you to do it. Also they could set Apache to gzip everything compressible, which would be the best way for it to be done.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8414312].message }}
    • Profile picture of the author rejionline
      Originally Posted by RobinInTexas View Post

      It's done on the server, not by wordpress.

      Add the following to your .htaccess file before # BEGIN WordPress

      Code:
      # compress text, html, css, xml, javascript:
      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
      If that doesn't work, you need to check with your hosting, they need to have Apache set to allow you to do it. Also they could set Apache to gzip everything compressible, which would be the best way for it to be done.
      Ya Fine .... I had added following code to htaccess in root and it is working fine
      Code:
      # compress text, html, javascript, css, xml:
      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
      AddType x-font/otf .otf
      AddType x-font/ttf .ttf
      AddType x-font/eot .eot
      AddType x-font/woff .woff
      AddType image/x-icon .ico
      AddType image/png .png
      {{ DiscussionBoard.errors[8414931].message }}

Trending Topics