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.
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
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.
This is not really a ZenCart issue but more of a server config issuenobody?
You might be better off posting on one of the sysadmin forums about this
Zen-Venom Get Bitten
Maybe. But with the Dr post for the htacess entry, pages will compress. Many have had issues with the built in ZC compression. Maybe it has to be revisited to conform to new apache versions.
![]()