Trellis has always used nginx microcaching, basically page caching.
The WordPress site health check fails the page caching test on Trellis though,
as it expects one or more caching-specific HTTP headers and values for page caching being considered working. cache-control, expires, age, last-modified, etag, x-cache-enabled, x-cache-disabled, x-srcache-store-status, x-srcache-fetch-status
The response header for the frontend front page is Cache-Control: no-cache, must-revalidate, max-age=0. This would not satisfy the page caching test in WordPress site health.
Although this is less of an issue with agency sites, I would still want to see all health checks pass.
Can the header checks be modified to detect a Trellis-specific page caching header or behavior for example?
So I have to correct my assumption that Cache-Control: no-cache, must-revalidate, max-age=0 is added as HTTP response header, as this is set for outside requests, not for internal requests from nginx to PHP FPM.
Adding this to Trellis by default appears to be a good idea (no obvious side-effects, improving compatibility with WordPress core (site health check)).
Would this be also worth a WordPress core trac issue, that the Fastcgi-Cache HTTP response header is also used as page cache indication in the WordPress site health check?