Jump to content

Recommended Posts

Hello all -

 

I was searching the web on how to optimize my website bandwith usage and I came across this post at the Yahoo Search blog. So my question is, can we use this feature on our accounts?

 

I use Wordpress for some blogs and I saw that under the reading options they have a check box that says "compress articles (gzip) if browsers ask for them" I assume this is something like mod_gzip, but obviously this only works for stuff in my wordpress blog. Is there any way we can do something similiar for stuff elsewhere?

 

Rundi

Link to post
Share on other sites
php_value output_handler ob_gzhandler

 

Just keep in mind that if you enable this site wide with the above, you do not want to enable it in individual packages like wordpress, because then the content can potentially be gzip'd twice and actually cause you problems.

Link to post
Share on other sites
Just keep in mind that if you enable this site wide with the above, you do not want to enable it in individual packages like wordpress, because then the content can potentially be gzip'd twice and actually cause you problems.

 

Thank you TCH-MikeJ for that important point of clarification! It seems to me, then, that it would be best to do this in the .htaccess for the entire website rather than individually in Wordpress? I can't think of any advantage of doing it from within Wordpress . . . but I'm not really smart on this type of thing.

 

Also, for other people who come to read this thread, I want to point out that the gzip feature both of the above responders are talking about is not mod_gzip. Mod_gzip is an Apache mod. The above code given by TCH-Don is a php function that uses gzip compression. I followed the link TCH-Don provided and eventually got to here where (if you read far enough down the threat) it is said that mod_gzip is not supported on shared servers.

 

Unless that has changed it means those of us who use a shared server can't use mod_gzip, but you can use the php function if you are using php. Correct?

 

Which leads me to the question, could I change the extension of a .html file to .php and have it get gzipped by the php compression? That would be cool.

 

Thanks

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...