Periodic recurrence of "Author URL is not accessible" in Site Health #226
-
The Site Health check for accessibility of author URL periodically comes up. Starting this discussion both to seek help, and to start making a trail of crumbs as I discover them. WP 6.1.1, ActivityPub 0.14.3 I know this happened once before—perhaps more than a week ago. Checking with curl, the desired content-type is truly missing. https://moversmindset.com/author/craig/
This fixes it (temporarily?)I recall that the last time I saw this notice in Site Health, I cleared the pages cache (via the WP-Optimize plugin.) So I cleared the cache and the Site Health test is now happy. But curl'ing the author URL still does not show the Site Health's desired headers…
First question:Should I be including an additional header with my curl request? My curl after clearing the cache still does not show the Second question:Should I be excluding the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
You missed the Accept header in your curl:
But it really looks like a caching issue. The first version, either HTML or JSON, that was requested seems to be cached and returned. Your request (without the Accept header) should always return the HTML version and with the except header it should always return the JSON. Sadly most caching plugins does not support Content Negotiation :( So yes, you have to exclude the author pages from the caching. |
Beta Was this translation helpful? Give feedback.
You missed the Accept header in your curl:
But it really looks like a caching issue. The first version, either HTML or JSON, that was requested seems to be cached and returned. Your request (without the Accept header) should always return the HTML version and with the except header it should always return the JSON. Sadly most caching plugins does not support Content Negotiation :(
So yes, you have to exclude the author pages from the caching.