gzipped pages

  • rjstephens
  • Professor
  • Professor
  • User avatar
  • Posts: 774
  • Loc: Brisbane, Australia

Post 3+ Months Ago

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.
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

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

Code: [ Select ]

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.


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

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 1 guest
  • 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

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.