[SIZE=“3”]The fastest and easy way to speed up your website, is to turn on the gzip compression.[/SIZE]
What is gzip compression?
The server compresses your pages by zipping them before sending to your visitors. Thus, the weight of your pages is lighter and therefore faster to load. Your site becomes faster, becoming compatible with the new Google rules.
On the new page that appears, search for “mod_deflate”
If “mod_deflate” is in “Loaded Modules”, then you officially have the ability to turn on gzip compression.
If “mod_deflate” is NOT there, don’t worry, read more…
How to officially have the gzip compression?
You have “mod_deflate” in “Loaded Modules”.
Edit your “.htaccess” file on your root and add this code:
<IfModule mod_deflate.c><br />
<FilesMatch "\.(js|css|php|html)$"><br />
SetOutputFilter DEFLATE<br />
</FilesMatch><br />
</IfModule>
```<br />
<br />
Please, note this:<br />
<br />
If you have Smartoptimizer, add this code:<br />
<br />
```php
<IfModule mod_deflate.c><br />
<FilesMatch "\.(php|html)$"><br />
SetOutputFilter DEFLATE<br />
</FilesMatch><br />
</IfModule>
```<br />
<br />
[B]Nota Bene:[/B]<br />
<br />
Smartopitimizer is faster on JS and CSS than "mod_deflate" because it manages JS and CSS in static way. So, don't put these files on "mod_deflate" if you have Smartoptimizer!<br />
<br />
[B]How to unofficially have the gzip compression?[/B]<br />
<br />
You have [B]NOT[/B] "mod_deflate" in "Loaded Modules".<br />
<br />
Edit your "index.php" file on your root and add to the first line, right after the CS-Cart copyright comments:<br />
<br />
```php
# Gzip here, because my web hosting company does NOT turn on gzip "mod_deflate".<br />
ob_start("ob_gzhandler");
```<br />
<br />
or:<br />
<br />
```php
# Gzip here, because my web hosting company does NOT turn on gzip "mod_deflate".<br />
if(!ob_start("ob_gzhandler")) ob_start();
```<br />
<br />
Test your page for gzip compression:<br />
<br />
[url]http://www.whatsmyip.org/http_compression/[/url]<br />
<br />
If you get a [COLOR="Red"]red cross[/COLOR] [IMG]http://www.whatsmyip.org/http_compression/images/nope.png[/IMG], [B]NOT[/B] a [COLOR="Green"]green check[/COLOR] [IMG]http://www.whatsmyip.org/http_compression/images/yup.png[/IMG], thus, gzip compression is locked. Ask you support to know why.<br />
<br />
[B]Check your new results on GTMetrix:[/B]<br />
<br />
[url]http://gtmetrix.com/[/url]<br />
<br />
On WebPageTest:<br />
<br />
[url]http://www.webpagetest.org/[/url]<br />
<br />
And on Zoompf:<br />
<br />
[url]http://zoompf.com/[/url]<br />
<br />
Taste the difference :cool: <br />
<br />
<br />
<br />
Lee Li Pop
Edit: What’s the next one Lee Li? I am waiting for you to tell me something I don’t already know. :p[/QUOTE]
Let me reassure you right away: You know everything, because you successfully manage your site yourself!
In fact, there are steps that are already present on this forum in detail, or that have been discussed as an example or model. I’ll include them anyway, well, readers, even in the years to come, will have the opportunity to easily follow and understand these steps.
However, that’s a heavy thing than to explain in detail how I do.
Let me time to prepare steps.
I write a memo list of steps, for sure, there are over 10 (closer to 15 actually).
Please don’t be rushed. I hope that the last step will be released before Christmas. Sorry to be so slow, but I want to be as specific as possible.
I commend you (and I am sure others appreciate it very much) for what you are doing but I think the long you wait, the more the information gets cluttered and confusing because of all of the posts in between (Like all of the other information in these forums).
[quote name=‘The Tool’]In a nut shell…no. Webo costs a lot of money and these are steps that you can take that are the equivalent (but not exactly) to using Webo.
Edit: These steps are what you can do without paying the price of Webo.[/QUOTE]
I agree with you, WEBO is quite expensive, however, it’s a reliable plug and play module, and perfect for newbies or in hurry people.
My “solution” comes from my experience, nothing is guarantee, just time spent…
I have a question. I have followed all the steps and the websites is really faster now.
The problem is that now i can’t open pdf attachments files or they require 5 minutes to open. The files are resident into the server. If i go back with old configuration (no gzip compression) the website is slower but i can download the pdf attachments.
Hi thank you for the hints, the website is really faster now.
But I have a problem. I have some attachments (.pdf files mostly) and with the compression i’m not able anymore to open them or it requires more than 5 minutes to do it. I had to remove the gzip compression at the end of the day.
I had not the mod_deflate originally in Loaded Modules, but I followed the procedure and it worked.
has nothing to do with the cart, it is an http setting for the server/browser to negotiate. Hence compression can be used with any site and any data as long as the web-server and the browser agree on the compression technique.