ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

GZip / Deflate JS and CSS

May 22, 2008 9:40pm

Subscribe [2]
  • #1 / May 22, 2008 9:40pm

    Kaori

    57 posts

    I’m trying to compress my pages with either gzip or deflate.  My set the settings on my EE to gzip, and its working on the pages outputted by EE.  It doesnt compress my CSS, nor the JS.

    I decided to make the JS external, and tried the following code to compress:

    <Files *.js>
    
        #Compress
    
        SetOutputFilter DEFLATE
    
    </Files>

     


    Any of you guys have some advice for getting it done?

  • #2 / May 23, 2008 8:42am

    CimexMedia

    68 posts

    Why do you want to gzip from within EE ?
    Don’t you have access to your Apache configuration file ?

    gzipping your CSS

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases