So I have gzip enabled but it is not compressing any of the css on my site. The main page shows it as enabled but none of the css gets compressed. Anyone know why? Should I just disable gzip on zen cart and enable ti on apache?
So I have gzip enabled but it is not compressing any of the css on my site. The main page shows it as enabled but none of the css gets compressed. Anyone know why? Should I just disable gzip on zen cart and enable ti on apache?
css files are not being processed as php files so either set apache to cmopress them, or add an application type to css to enable php parsing. Either way you are increasing your server cpu overhead, whereas it's likely that css on it's own is just going to be cached. Swings and roundabouts.
There's no need to alter the server setup for gzip compressing css files. They're cached by the browser anyway, so won't be an issue on page reload. And, as stated, adding more compression just increases server load needlessly.
.
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.