Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2009
    Posts
    186
    Plugin Contributions
    0

    Default GZIP not compressing css

    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?

  2. #2
    Join Date
    Dec 2009
    Location
    Pinner
    Posts
    230
    Plugin Contributions
    1

    Default Re: GZIP not compressing css

    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.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: GZIP not compressing css

    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.

 

 

Similar Threads

  1. How to get compressed gzip css file to work?
    By sfklaas in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Jan 2011, 04:55 PM
  2. Gzip / compressing -- now my downloads say "not available"
    By mhakiwa in forum General Questions
    Replies: 0
    Last Post: 17 May 2009, 08:15 AM
  3. Compressing Products Images
    By jrb1512 in forum Basic Configuration
    Replies: 0
    Last Post: 22 Nov 2006, 11:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg