Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

gzip compression not working?


march

Recommended Posts

I would have thought that with Gzip Compression set to TRUE in my config would mean my html pages would be smaller.

This is not the case: With Gzip compression TRUE or FALSE, the size of my webpages are just the same.

 

I am testing the difference by saving my webpage using File>Save Page As (in Firefox) and comparing the filesizes in bites.

 

Anyone else have this problem?

I cannot find a solution on these forums - please help.

 

Thanks,

Marc.

Link to comment
Share on other sites

I would have thought that with Gzip Compression set to TRUE in my config would mean my html pages would be smaller.

This is not the case: With Gzip compression TRUE or FALSE, the size of my webpages are just the same.

 

I am testing the difference by saving my webpage using File>Save Page As (in Firefox) and comparing the filesizes in bites.

 

Anyone else have this problem?

I cannot find a solution on these forums - please help.

 

Thanks,

Marc.

 

gzip compression is for transmission, not viewing.

 

Your pages are zipped before sending and unzipped after receiving before displaying in your browser.

So your test method is rather useless.

Treasurer MFC

Link to comment
Share on other sites

gzip compression is for transmission, not viewing.

 

Your pages are zipped before sending and unzipped after receiving before displaying in your browser.

So your test method is rather useless.

 

Oh ok! Thanks boxtel.

Do you also know what's the best technique/software I can use to do speed-tests for my site (exists locally on my machine) without cache messing things up?

Link to comment
Share on other sites

Oh ok! Thanks boxtel.

Do you also know what's the best technique/software I can use to do speed-tests for my site (exists locally on my machine) without cache messing things up?

 

well, speed tests on your local machine are of relatively little value.

 

You could use some of the speed optimization contributions by Chemo which show you the queries performed on a page by page basis, query execution times as well as the parse times of the pages.

The default osc install does use a large amount of "redundant" sql executions.

 

There is also a tip on compressing the output, removing spaces and return characters from the pages before they are gzipped to even further reduce the filesizes.

 

You could also look at your server access logs as they do reflect the gzipped file size.

Treasurer MFC

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...