Jump to content

Gzip compression


Recommended Posts

Hi, I noticed that by default, prestashop content is not being gzip compressed.

My question is: why?

 

adding this to the .htaccess file, improves the loading quite a lot.

 

 

 

# compress text, HTML, JavaScript, CSS, and XML
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent

 

Source: http://gtmetrix.com/enable-gzip-compression.html

 

 

Here's my sites result before and after gzip compression:

 

No gzip:

7JWo5.png

 

 
gzip: 
7JWoE.png
Edited by sunreader (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...