Pluncker Posted March 6, 2015 Share Posted March 6, 2015 Following to a recommendation from gtmetrix.com, I enhanced the .htaccess file (in PS root directory) with: <IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml # Remove browser bugs (only needed for really old browsers) 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 </IfModule> This allows a GZIP-compression on Apache server. The effect is massive on my PS 1.6.0.13-installation! Loading time is increased by near 60%! However, there is already a <IfModule mod_deflate.c>-statement in my .htaccess, automatically generated by PS: <IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype </IfModule> </IfModule> which seems not have any effect at all! Whatever - with gtmetrix-Code, PS is running like hell on my dedicated server... 1 Link to comment Share on other sites More sharing options...
Pluncker Posted March 6, 2015 Author Share Posted March 6, 2015 Ok, mod_filter isn't installed on my server, preventing the execution of the generated AddOutputFilterByType DEFLATE-code. Are there any drawbacks using AddOutputFilterByType DEFLATE without installed mod_filter? Link to comment Share on other sites More sharing options...
bellini13 Posted March 6, 2015 Share Posted March 6, 2015 This really has nothing to do with Prestashop, this is just smart webserver configuration, and your host should have this enabled globally As to your question about mod_filter, this might help http://stackoverflow.com/questions/5230202/apache-addoutputfilterbytype-is-deprecated-how-to-rewrite-using-mod-filter 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now