Jump to:

22993 Posts in 11829 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » gzip and mod_deflate help

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 911 Views
  • Hello_electro
    Avatar
    Community Member
    80 Posts

    gzip and mod_deflate help Link to this post

    HI Everyone:

    I am trying to gzip/compress the css and js files on my site. I have set up my htaccess to include the following:

    # BEGIN Gzip
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/js
    AddOutputFilterByType DEFLATE application/x-javascript
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4.0[678] no-gzip
    BrowserMatch bMSIE !no-gzip !gzip-only-text/html
    </IfModule>
    # END Gzip

    from what i can tell the css files are compressed. but when i run pagespeed I am getting a warning that the js files are NOT compressed. When i go to whatsmyip.org to see if gzip is running the test passes.

    Is this an error on pagespeed? or perhaps i am not included something in the htacess?

    I am also aware that my hosting provider has mod_deflate enabled.

    Thanks for nay advice on this!

  • vancouverWill
    Avatar
    Community Member
    121 Posts

    Re: gzip and mod_deflate help Link to this post

    did you ever have any success with this?

    thanks

    Will

    911 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.