You are here:  » Compressing sitemaps


Compressing sitemaps

Submitted by Convergence on Mon, 2014-05-19 07:23 in

Any thoughts of compressing sitemaps, IE: .gz versus just text? Some of our merchants have HUGE sitemaps.

Yes? No? How to?

Thanks!

Submitted by support on Tue, 2014-05-20 08:40

Hi Convergence,

Should be as straight forward as enabling the gzip output buffer handler - to do this, edit sitemap.php and look for the following code at line 4:

  header("Content-Type: text/xml");

...and REPLACE with:

  ob_start("ob_gzhandler");
  header("Content-Type: text/xml");

Cheers,
David.
--
PriceTapestry.com

Submitted by Convergence on Tue, 2014-05-20 13:39

Thanks, David!

Was curious if anyone else here sees a benefit from compressing sitemaps. We never have on any site, but logically sounds like a good idea...

Submitted by support on Tue, 2014-05-20 13:45

There's certainly no harm - but the difference means it's probably going to be difficult to quantify. If your sitemaps are very large; then by definition so is your site - and if a search engine has considered your site worthy of expending sufficient resources on to index fully then it's unlikely to be a factor - but certainly no reason not to!

Cheers,
David.
--
PriceTapestry.com