We host our website with Caddy using a encode zstd gzip directive (https://caddyserver.com/docs/caddyfile/directives/encode) to ensure efficient content delivery. This does affect the content-type for our sitemap.json which becomes application/json; charset=utf-8 instead of application/json as expected by the check in line 182 of user/plugins/warm-cache/warm-cache.php:
This results in the warm-cache plugin throwing an error. When removing the check above the warm-cache command works fine. We can fix this locally, however, an upstream change would be nice.
We host our website with Caddy using a
encode zstd gzip
directive (https://caddyserver.com/docs/caddyfile/directives/encode) to ensure efficient content delivery. This does affect thecontent-type
for our sitemap.json which becomesapplication/json; charset=utf-8
instead ofapplication/json
as expected by the check in line 182 ofuser/plugins/warm-cache/warm-cache.php
:$sitemap_response->getHeaders()['content-type'][0] == 'application/json')
This results in the warm-cache plugin throwing an error. When removing the check above the warm-cache command works fine. We can fix this locally, however, an upstream change would be nice.
Thanks!