eliashaeussler / cache-warmup

🔥 PHP library to warm up caches of URLs located in XML sitemaps

Home Page:https://cache-warmup.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] Support compressed sitemaps

eliashaeussler opened this issue · comments

Is your feature request related to a problem?

If XML sitemaps are gzipped, they cannot be processed currently.

Describe the solution you'd like

The XML parser should detect whether an URL response is gzipped. In this case, it should be decompressed before being parsed.

Describe alternatives you've considered

No response

Additional context

Here's how it's done in vipnytt/sitemapparser: https://github.com/VIPnytt/SitemapParser/blob/v1.1.6/src/SitemapParser.php#L190