Skip to content

Periodic recurrence of "Author URL is not accessible" in Site Health #226

Answered by pfefferle
craigconstantine asked this question in Q&A
Discussion options

You must be logged in to vote

You missed the Accept header in your curl:

curl "https://moversmindset.com/author/craig/" \
     -H 'Accept: application/activity+json'

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.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@craigconstantine
Comment options

@pfefferle
Comment options

@craigconstantine
Comment options

Answer selected by craigconstantine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants