Results 1 to 6 of 6
-
07-22-2002, 08:42 AM #1Web Hosting Master
- Join Date
- Sep 2000
- Posts
- 1,015
gzip reliable for outputting any kind of page?
This may sound like a silly question, but from people's experience, is gzip a reliable compression method for outputting any kind of page, or just one composed mostly of text/images? I ask this because I'm thinking of enabling gzip on our site dynamicdrive.com, which consists of sample DHTML (JavaScript) codes throughout its pages. I hate to have gzip mess things up in some browsers.
Thanks,
-
07-22-2002, 02:47 PM #2WHT Addict
- Join Date
- Feb 2002
- Location
- UK
- Posts
- 120
Re: gzip reliable for outputting any kind of page?
Originally posted by GeorgeC
This may sound like a silly question, but from people's experience, is gzip a reliable compression method for outputting any kind of page, or just one composed mostly of text/images? I ask this because I'm thinking of enabling gzip on our site dynamicdrive.com, which consists of sample DHTML (JavaScript) codes throughout its pages. I hate to have gzip mess things up in some browsers.
Thanks,
HTH,
InfiniteDo'h!
-
07-22-2002, 07:30 PM #3WHT Addict
- Join Date
- Jul 2002
- Posts
- 153
Just don't use it for images and you should be good to go. I believe it isn't to hard to do for simple html pages.
-
07-22-2002, 07:46 PM #4Web Hosting Master
- Join Date
- Sep 2000
- Posts
- 1,015
Re: Re: gzip reliable for outputting any kind of page?
Originally posted by infinite
Why not try it out on certian directorys only to start with?
HTH,
Infinite
-
07-23-2002, 04:49 PM #5WHT Addict
- Join Date
- Feb 2002
- Location
- UK
- Posts
- 120
Re: Re: Re: gzip reliable for outputting any kind of page?
Originally posted by GeorgeC
Thanks for the info. Unfortuantely I don't have the luxury of testing it out, as my current host doesn't support it, and the new host I'm looking to move to has gzip installed by default.
Or you could do it this way;; You can redirect all of the output of your scripts to a function. For
; example, if you set output_handler to "ob_gzhandler", output will be
; transparently compressed for browsers that support gzip or deflate encoding.
; Setting an output handler automatically turns on output buffering.
;output_handler =
output_handler = ob_gzhandler
HTH,
InfiniteDo'h!
-
07-23-2002, 06:50 PM #6Web Hosting Master
- Join Date
- Jan 2002
- Location
- Kuwait
- Posts
- 679
mod_gzip is very good for text.
Including HTML, JavaScript, CSS .. etc.
It will reduce your bandwith usage, probably to a great extent.
Running it on images will be a waste of CPU cycles, but that's your hosts job to configure.