Results 1 to 2 of 2

Thread: gzip compression

  1. #1
    cornnfedd is offline Working on Master Status
    Join Date
    Dec 2007
    Posts
    78

    Question gzip compression

    I tried to use gzip but got an error, is this set up for glowhost?


    quote from phpmotion below.


    This is probably the easiest, quickest thing you can do to speed up your site.
    Open your main .htaccess file (ie the one in your public_html), and add this into it.
    Code:
    php_flag zlib.output_compression on
    php_value zlib.output_compression_level 1
    ErrorDocument 404 /404.php
    AddOutputFilterByType DEFLATE text/css application/x-javascript
    AddOutputFilterByType DEFLATE text/css application/x-javascripts
    This compresses every file on your site (including that heavy javascript and CSS) by as much as 70% and makes it much faster to load.
    Also thrown in there for free is the correct 404 code which is also missing from the default install.
    This requires some common modules to be installed on your server, and some cheaper hosts will not have these installed as it increases the load on the server a little, meaning they cant cram as many sites onto the server. If you get a problem after installing it, theres nothing you can do but remove the code again.
    HTH
    Nb edited to add
    AddOutputFilterByType DEFLATE text/css application/x-javascripts
    As this is used by some common mods on this site, if you have no mods it wont harm to leave it there.

  2. #2
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    6,208

    Default

    I think when he says "cheaper" he means "shared."

    On a shared host the speed gained is minimal compared to the load that is added by enabling this module. I wouldn't be surprised if the sites loaded slower in general on a gzip enabled shared server.

    It is not enabled for performance reasons on shared hosts but can be enabled on VPS and dedicated if you like.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14