gzipped pages

  • rjstephens
  • Professor
  • Professor
  • User avatar
  • Joined: Jul 28, 2003
  • Posts: 774
  • Loc: Brisbane, Australia
  • Status: Offline

Post July 10th, 2004, 8:35 pm

Does anyone know if google understands gzipped' pages? I'm trying to decide whether or not there is a point in allowing gzip to be disabled for certain user agents.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 10th, 2004, 8:35 pm

  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post July 11th, 2004, 12:58 am

Assuming you are using PHP, you can output buffer it with:

Code: [ Select ]
ob_start("ob_gzhandler")

Quote:
Before ob_gzhandler() actually sends compressed data, it determines what type of content encoding the browser will accept ("gzip", "deflate" or none at all) and will return its output accordingly. All browsers are supported since it's up to the browser to send the correct header saying that it accepts compressed web pages.

http://uk.php.net/manual/en/function.ob-gzhandler.php

If google can't accept gzip, then it won't get sent gziped pages :)

just checked and the following is apparently the preferable method with php, but again, only complresses if the browser can support it:

http://uk.php.net/manual/en/ref.zlib.ph ... ompression
CSS website design tutorials

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 18 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.