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.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • 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 ]
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

Post Information

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

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