Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Apache HTTP server which is configured with mod_deflate to compress content "on the fly".

Is there any benefit if I serve a compressed sitemap.xml.gz file, or should I rely on mod_deflate to compress resources?

share|improve this question
up vote 2 down vote accepted

GZIP offers superior compression in most instances, but XML sitemaps just aren't that large to begin with. I would say that you shouldn't worry about it.

Unless you have some very sizable sitemaps (ie: Approaching the 50,000 URL limit), I would say that the server's compression should be sufficient - at least to avoid the hassle of manually compressing them yourself.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.