* Latest WP with latest Litespeed and Activitypub plugins. * Add Tim's initial fix to .htaccess, with [NC] for case-insensitive matching. * Purge cache to be sure. * curl --header "Accept: application/activity+json, application/ld+json" (WP post url) * activitystream json should be returned * curl --header "Accept: */* " (same url) * Expected result is HTML, however the cached activitystream json is incorrectly returned.
It's the Accept: header coming from a random third party, not the plugin.
My hosting doesn't log that header, but I'd guess that third party is sending an Accept with incorrect casing.
The .htaccess RewriteCond didn't pick it up, so didn't add the Cache-Control:vary suffix.
However, the ActivityPub plugin matched the header regardless of case and returned the activitystreams json as expected. Which may be correct behaviour in itself.
Still getting trouble combining the #activitypub and #litespeed cache plugins on my #wordpress site. I’ve implemented Tim Nolte‘s .htaccess changes to vary on Accept type, and that works when manually testing with a browser and Postman. But every now and then the Activitypub JSON gets cached and delivered to a regular browser.
Has there been a recent change to the accepted application types that the RewriteCond needs to pick up on? If so, which apps use this different type?
For me, the ability to fine tune how the Fediverse profile is presented would be great. I believe there’s some work on the roadmap to better define how the Header Image, Icon, Biography and other profile details are propogated. It would be good as well to be able to add validated links to the profile at the blog level.
There may be a capacity to do this in the separate webfinger and nodeinfo plugins, but those are too opaque for a non-technical admin.