The Sitemap SOP
The Sitemap SOP
@SitemapSOP

Mistake: gzipped sitemap served with the wrong headers

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.
Этот пост опубликован в Telegram-канале The Sitemap SOP. Подписаться можно по ссылке: @SitemapSOP.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

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

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

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