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

[QUESTION] Why it suddenly sends only HEAD request?

gkopec opened this issue · comments

PHP version

8.1

Package version

2.5.0

Application

Composer

Operating system

Ubuntu

Current behavior

From today I found in access.log that script is sending only HEAD without GET request. Could this be an nginx problem?
Without GET the cache is not warmin up actually.

Expected behavior

No response

Steps to reproduce

No response

Additional context

No response

Hi @gkopec, the default crawler was always designed to send HEAD requests by default. However, you can always change the request method to GET (see https://github.com/eliashaeussler/cache-warmup#request_method).

Example for usage on the command-line:

$ vendor/bin/cache-warmup -o '{"request_method": "GET"}'