Gzip compression


(TonBreukers) #1

My websitehosting company told me to use GZ compression.
Grrrrr. New for me.
I builded a website in french www.produits-gastronomics.fr it starts very slow.
How to do this in combination with rapidweaver?

Greetings

Tony


(Doug Bennett) #2

Gzip has nothing to do with RapidWeaver. That’s usually a hosting control panel option.

If this is related to your other post about speed I don’t think this would solve the issue you are having with TTFB.


(Jason Bostick) #3

Some hosting companies don’t have gzip options. For example, I think it is Bluehost that normally offers Gzip automatically (if your site is ‘http’), but it can’t on ‘https’. So they suggest using Cloudflare in those instances.

But, as teefers says, normally it’s an option in your control panel that you can enable pretty easily


(William VILLERS) #4

This should be done at the ISP level, not in rw… Depending on what web server is used, the method to instruct the compression would be different… Easiest is to do this in .htaccess, here’s an example:

<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.gzip.
</ifModule>


(TonBreukers) #5

Thank you for this may I try this script?

Greetings

Tony


(system) #6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.