+ Reply to Thread
Results 1 to 5 of 5

Thread: [.HTACCESS]GZIP compression your pages

  1. #1
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    [.HTACCESS]GZIP compression your pages

    Why?

    Pros
    • Save bandwidth
    • Users gets the page faster
    Cons
    • CPU load

    Put this in your .htaccess:
    Code:
    <IfModule mod_gzip.c>
      mod_gzip_on yes
      mod_gzip_item_include mime text/html
      mod_gzip_item_include mime text/plain
      mod_gzip_item_include mime text/css
      mod_gzip_item_include mime application/xml
      mod_gzip_item_include mime application/x-httpd-php
      mod_gzip_item_include mime image/x-generic
      mod_gzip_dechunk yes
      mod_gzip_min_http 1000
      mod_gzip_temp_dir /tmp
      mod_gzip_keep_workfiles No
      mod_gzip_minimum_file_size  1000
      mod_gzip_maximum_file_size  0
      mod_gzip_maximum_inmem_size 1000000
      mod_gzip_can_negotiate Yes
    </IfModule>
    This enables GZIP on html, plain text, images, xml and php

    Source: http://forums.invisionpower.com/inde...owtopic=180892
    Last edited by galaxyAbstractor; 06-15-2008 at 09:07 AM.

  2. #2
    LHVWB's Avatar
    LHVWB is offline Lord Of The Keys LHVWB is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1,308

    Re: [.HTACCESS]GZIP compression your pages

    I haven't worked with this sort of compression much, just a question. How high would the CPU load be? Because it might get you suspended for high resource useage if its high enough.

  3. #3
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: [.HTACCESS]GZIP compression your pages

    Quote Originally Posted by LHVWB View Post
    I haven't worked with this sort of compression much, just a question. How high would the CPU load be? Because it might get you suspended for high resource useage if its high enough.
    well, since there isn't a way to see how much CPU a single user uses it is hard to decide but I have used it for my forum and it have not been any problem at all.

    It is only zipping the files before sending them

  4. #4
    Sohail's Avatar
    Sohail is offline x10 Spammer Sohail is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    3,052

    Re: [.HTACCESS]GZIP compression your pages

    The only bad thing is that it slows down the CPU, a lot. Nice tutorial by the way.

  5. #5
    seifer89 is offline x10Hosting Member seifer89 is an unknown quantity at this point
    Join Date
    Jun 2008
    Posts
    2

    Re: [.HTACCESS]GZIP compression your pages

    thanks anyway

+ Reply to Thread

Similar Threads

  1. how can i convert Php pages and code into asp pages and code
    By n4tec in forum Scripts & 3rd Party Apps
    Replies: 11
    Last Post: 01-10-2009, 09:40 PM
  2. help-add content to all pages at once
    By andhrafun in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 09-19-2007, 03:41 AM
  3. Ad-Code in PHP Pages
    By ghettoc401 in forum Free Hosting
    Replies: 3
    Last Post: 08-16-2007, 05:19 PM
  4. Ads on my pages
    By cokacola650 in forum Free Hosting
    Replies: 2
    Last Post: 02-16-2006, 10:38 AM
  5. Replies: 7
    Last Post: 09-16-2005, 10:27 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
x10hosting free hosting for the masses
dedicated servers