Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 19th Aug 2013, 07:12 AM   #1
Reji Kumar R
 
rejionline's Avatar
 
Join Date: 2013
Location: Cochin, Kerala
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Tip
Best plugin for gzip compression with wordpress blog
Share on: 
fb share twitter share gplus share more share

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....

Thanks
Reji Kumar R
www.rejionline.net
fb.com/RejionlinePage
twitter.com/rejikumar06
rejionline is offline  
Unread 19th Aug 2013, 08:09 AM   #2
Warrior Member
 
Join Date: 2013
Location: Cape Town, South Africa
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Best plugin for gzip compression with wordpress blog
Share on: 
fb share twitter share gplus share more share

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.
rodvdka is offline  
Unread 19th Aug 2013, 08:21 AM   #3
ɹoıɹɹɐʍ ǝʌıʇɔɐɹǝdʎɥ
War Room Member
 
RobinInTexas's Avatar
 
Join Date: 2008
Location: Texas
Posts: 2,138
Thanks: 243
Thanked 453 Times in 382 Posts
Blog Entries: 3
Tip
Re: Best plugin for gzip compression with wordpress blog
Share on: 
fb share twitter share gplus share more share

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.

Robin


...Even if you're on the right track, you'll get run over if you just set there.
RobinInTexas is offline  
Unread 19th Aug 2013, 11:14 AM   #4
Reji Kumar R
 
rejionline's Avatar
 
Join Date: 2013
Location: Cochin, Kerala
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default
Re: Best plugin for gzip compression with wordpress blog
Share on: 
fb share twitter share gplus share more share

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

Thanks
Reji Kumar R
www.rejionline.net
fb.com/RejionlinePage
twitter.com/rejikumar06
rejionline is offline  
Closed Thread


Bookmarks

Tags
blog, compression, gzip, plugin, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 09:03 PM.