I get this browser error if gzip=1
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
with gzip=0
Page loads perfectly.
v1.5.1
I get this browser error if gzip=1
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
with gzip=0
Page loads perfectly.
v1.5.1
I suspect your host has gzip disabled
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
That would be me. What file to edit?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thanks, but that link explained how to do it in htaccess. I had that already. I want to config apache installed on centos. Not really ZC related. Im searching.
My file
/usr/local/apache/conf/httpd.conf
<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>
I have read other posts on line from 2009. Same scenario that I have. Gzip enabled with admin off serves up pages not compressed. Turning on admin gzip gives a blank page.
I really dont want to got to every directory and edit each htaccess file to have pages compressed.
I'm thinking that this probably isn't what you need to be doing. mod_gzip hasn't been used by Apache for several years now. It has been replaced with the newer mod_deflate.
This may help (assuming you are using Centos 7)
https://www.digitalocean.com/communi...te-on-centos-7
Cheers
RodG
Yea I read that too. I am using centos 6.6. Apache 2.2.27
I tried changing the httpd file to include mod_deflate, but the error message when I restarted service was something along the lines of "already configured for compression" but I can assure you there was no mention of mod_deflate in my httpd.con file.
I will keep plugging along til I find out.
Thanks
I added this to my httpd.conf file at the bottom to solve my problem.
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
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.[0678] no-gzip
BrowserMatch bMSIEs7 !no-gzip !gzip-only-text/html
BrowserMatch bOpera !no-gzip Header append Vary User-Agent
DeflateCompressionLevel 9
I think you should lock this thread. No need to add anymore comments.