Current time: 12-19-2017, 08:17 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hostgator and Compression
06-10-2010, 10:03 PM
Post: #1
Hostgator and Compression
I posted a question and got no response and search the forum for 'hostgator' one of the world's biggest hosting companies and found 'Sorry, but no results were returned using the query information you provided'

Hostgator doesn't support mod_gzip or gzip, as far as I know, with their shared plans.

What should a good fellow do to get good text and image compression?
Find all posts by this user
Quote this message in a reply
06-10-2010, 11:47 PM
Post: #2
RE: Hostgator and Compression
Wow, that's almost criminal at this point. (sorry, was swamped so I didn't get a chance to reply to your earlier post).

Assuming you aren't willing to switch hosting providers at this point there are a few things you can do:

- Use a CDN for your static assets. Most will auto gzip for you (MaxCDN does and is quite reasonably priced)
- If you main page is php you can use php's built-in support for gzipping but that will only work for things that are php

Images don't get gzipped so you don't have to worry about those (though they would also benefit from being served from a CDN).

Do you pay for bandwidth at hostgator? If so I could see why they might not have incentive to enable compression because it would reduce the used bandwidth significantly. I know both Dreamhost and Bluehost support gzip and have it enabled by default.
Visit this user's website Find all posts by this user
Quote this message in a reply
06-11-2010, 11:51 AM (This post was last modified: 06-11-2010 11:52 AM by grahamginsberg.)
Post: #3
RE: Hostgator and Compression
Thanks for the comparison on host companies. I'll check them out.

Have you heard of a form of compression using a php.ini ? I have no idea what it involves.

If your entire site is cached all the time, and the pages load fast, what would the benefit of CDN be?
Also, there is a free CDN with pluggin http://www.coralcdn.org/plugins

It didn't do my site much good, but MAXCDN said because several pages are loading offsite, CDN wouldn't help anyway.

I spoke to Max and they said $40/1st yr for 10GIG and $100/year for thereafter. They have a money back deal, and require that you use W3 or was it supercache, neither work well, in fact slow down uncached pages on my site. What can I say?

Anyway, thanks for answerin the question
Find all posts by this user
Quote this message in a reply
06-11-2010, 10:24 PM
Post: #4
RE: Hostgator and Compression
CoralCDN isn't much of a CDN for performance, they are better at dealing with load spikes but suck for performance.

I'm taking it that your site is wordpress-based given the plugins MaxCDN suggested. If so, there are a couple of ways to get gzip enabled for the php content.

In wordpress itself: visit your wordpress options.php (yourdomain.com/wp-admin/options.php) and enter ‘1’ in the field of gzipcompression (1 stands for true, 0 is false).

In .htaccess: php_flag zlib.output_compression On

Unless I'm missing something, the pricing MaxCDN gave you doesn't look right: http://www.maxcdn.com/pricing.php (it's 1TB instead of 10GB). You don't want to use a push zone, use pull zones and have it pull the content from your servers. Are the pages that load offsite also from HostGator? If not and you're having gzip problem with them you should be able to get those addressed.

It also looks like they recommend W3 but any CDN plugin that does the url rewriting will work because of how pull zones work. It looks like the My-CDN plugin will do JUST the CDN url rewriting if you don't want any of the other things W3 does.

The way pull zones work is that you assign a domain to MaxCDN (or they give you one but I usually like to have my own host names) and you configure MaxCDN with where the REAL pages are served from.

For example, I have cdn.webpagetest.org configured as a pull zone on MaxCDN that is configured to get it's content from http://www.webpagetest.org/ - that way any content on webpagetest can be pulled from a CDN just by changing the url to refer to cdn.webpagetest.org instead of http://www.webpagetest.org.

When the browser requests http://cdn.webpagetest.org/js/jquery.min.js it goes to the closest MaxCDN server and if the server doesn't already have it, it goes back to webpagetest and downloads it. It also handles sending it compressed back to the browser and keeps it local so the next time it is requested it can be served directly from the CDN (until the file expires).
Visit this user's website Find all posts by this user
Quote this message in a reply
06-12-2010, 01:24 AM
Post: #5
RE: Hostgator and Compression
This is my site test. I see no compression improvement after making the options.php change
http://www.webpagetest.org/result/100611...83570f1bd/

Thanks
Find all posts by this user
Quote this message in a reply
06-12-2010, 01:30 AM
Post: #6
RE: Hostgator and Compression
If you look at the first 2 requests they are being gzipped - http://www.webpagetest.org/result/100611...imization/

That is all that the php is responsible for, the rest are static files and unless you can get mod_deflate working you would either need to use a CDN to do it for you or use a wordpress plugin that would take care of combining and compressing them.
Visit this user's website Find all posts by this user
Quote this message in a reply
06-12-2010, 04:15 AM (This post was last modified: 06-12-2010 04:16 AM by grahamginsberg.)
Post: #7
RE: Hostgator and Compression
Patrick - I already use Minify and like it. I am battling some on minifying external js and css files. Tends to mess things up.

Hostgator says they offer Gzip, but it appears that the speed comes from the 'MOD' which they don't offer on a shared plan. I went a gzip some stuff throught the CPanel, but I don't think it changes anything.

This is from YSLOW: "If you use Apache, the module configuring gzip depends on your version: Apache 1.3 uses mod_gzip while Apache 2.x uses mod_deflate"
Find all posts by this user
Quote this message in a reply
06-12-2010, 04:49 AM
Post: #8
RE: Hostgator and Compression
Right, to enable gzip you would need for them to have mod_deflate enabled on their apache install and from what I can tell they don't have it enabled for their shared hosting plan.

Something like MaxCDN would be able to do the compression even if Host Gator doesn't because they would be serving the files even if it is hosted on Host Gator (using a pull zone and a plugin that would rewrite the urls to go through the CDN).

Dreamhost and bluehost both have mod_deflate enabled on their shared hosting plans so it's a shame that host gator is choosing not to. Maybe if enough people left and said they were leaving because of it they might actually do something but I don't expect that to really happen.

If you want to stay with host gator you have a few choices:

- Switch to one of their VPS plans where they do allow it (I can't say I'd recommend rewarding them for their behavior by giving them more money though)
- Use a CDN to front your site and take care of GZip for you (among other performance benefits you'd get)
- Find a Wordpress module that would serve the external files through php allowing you to compress it in php instead of at the apache layer
Visit this user's website Find all posts by this user
Quote this message in a reply
06-12-2010, 11:45 PM
Post: #9
RE: Hostgator and Compression
(06-12-2010 04:49 AM)pmeenan Wrote:  Right, to enable gzip you would need for them to have mod_deflate enabled on their apache install and from what I can tell they don't have it enabled for their shared hosting plan.

Something like MaxCDN would be able to do the compression even if Host Gator doesn't because they would be serving the files even if it is hosted on Host Gator (using a pull zone and a plugin that would rewrite the urls to go through the CDN).

Dreamhost and bluehost both have mod_deflate enabled on their shared hosting plans so it's a shame that host gator is choosing not to. Maybe if enough people left and said they were leaving because of it they might actually do something but I don't expect that to really happen.

If you want to stay with host gator you have a few choices:

- Switch to one of their VPS plans where they do allow it (I can't say I'd recommend rewarding them for their behavior by giving them more money though)
- Use a CDN to front your site and take care of GZip for you (among other performance benefits you'd get)
- Find a Wordpress module that would serve the external files through php allowing you to compress it in php instead of at the apache layer

Patrick I am on box 519 at bluehost and 90% of the time BH dose zip the content, they tell me it has something to do with the CPU.

This test shows compressed http://www.webpagetest.org/result/100612_2NC/

And this test shows not compressed, test where only minutes apart.
http://www.webpagetest.org/result/100612_2NH/

Thank you for providing so much useful info, my head is spinning.
Find all posts by this user
Quote this message in a reply
06-14-2010, 06:15 AM (This post was last modified: 06-14-2010 06:20 AM by grahamginsberg.)
Post: #10
RE: Hostgator and Compression
I have stuck with hostgator primarily for the tech support in wordpress.

Most tech have a good knowledge while I called, I think it was blue (Maybe dream didn't even have a #) and just to get the version Apache and if they offer the 'mod' was an issue. I asked their tech if I had an issue getting a custom cron or script to work could they help if they knew how and the answer was NO.

Hostgator has helped me so much and save me so much in custom advise, it's been awesome. But, I'm also now monitoring with a service downtime http://www.pingdom.com give 1 free account as I've been concerned about zero hits in the wee hours of the morning, white Britain is hard at work, we sleep, Ahhh

I tried the free CDN and it almost crashed my site. Maybe I did it wrong, but I'm hestitant now.
Dayton, how did you get such a high score on the 'no etags'? I've tried changing the .htaccess with

# disable etags
FileETag none

But I don't know if it makes much difference

I also use this below, but really have no clue what works

<FilesMatch "\.(gif|jpg|js|png|ico|css)$">
ExpiresActive On
ExpiresDefault "access plus 10 years"
</FilesMatch>
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)