The Sitemap SOP
The Sitemap SOP
@SitemapSOP

Mistake: gzipped sitemap served with the wrong headers

A sitemap.xml.gz served as text/html or with double-compression (Content-Encoding: gzip on an already-.gz file) arrives as garbage. The crawler downloads bytes it cannot parse.

Fix checklist:
— ✅ .xml.gz file served with Content-Type: application/x-gzip (or application/gzip)
— ✅ Do NOT also set Content-Encoding: gzip on a pre-gzipped file — that double-encodes
— ✅ Plain .xml served as application/xml or text/xml, never text/html
— Confirm the file decompresses to under 50MB uncompressed

Definition of done: curl -I the sitemap URL and read the headers, then curl ... | gunzip | xmllint --noout -. Headers correct + clean decompress + valid XML = pass. Any parse error means an encoding mismatch.
This post was published in the Telegram channel The Sitemap SOP (@SitemapSOP). All its posts are on the channel page.
Open on Telegram

Latest posts in “Tools and infrastructure”

All channels in this category →

реклама в сети

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.