The Sitemap SOP
The Sitemap SOP
@SitemapSOP

SOP: Gzip large sitemaps the right way

SOP: Gzip large sitemaps the right way
For files near the size ceiling.

Step 1 — Compress only when needed: file approaching ✅ 50 MB uncompressed. Small files don't need it.

Step 2 — Name it ✅ ending in .xml.gz (the extension matters to crawlers).

Step 3 — Serve with header ✅ Content-Type: application/x-gzip (or text/xml + Content-Encoding: gzip — pick one scheme, not both).

Step 4 — Reference the .xml.gz URL in your sitemap index by its full absolute path.

Step 5 — The 50,000-URL limit still applies AFTER decompression. ✅ Gzip does not raise the URL cap.

Step 6 — Test: download it, gunzip, run xmllint. ✅ Valid XML inside.

Definition of done: .gz fetches with correct headers, decompresses to valid XML under 50k URLs, and GSC reads it without a 'parse error'.
Этот пост опубликован в Telegram-канале The Sitemap SOP. Подписаться можно по ссылке: @SitemapSOP.
tech

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

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

start

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

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

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