When using the ActivityPub plugin by @pfefferie WordPress outputs JSON when the Accept request header is application/json. This requires changes at page caching layer to avoid (a) the JSON output being cached and served to "normal" browsers and (b) that ActivityPub requests get served HTML from the page cache.
When using the ActivityPub plugin by @pfefferie WordPress outputs JSON when the Accept request header is
application/json
. This requires changes at page caching layer to avoid (a) the JSON output being cached and served to "normal" browsers and (b) that ActivityPub requests get served HTML from the page cache.This PR does that for Cache Enabler.