Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content negotiation for fediverse (activitypub) compatibility #326

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

futtta
Copy link
Contributor

@futtta futtta commented Mar 16, 2023

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.

@svenba svenba merged commit 823552d into keycdn:master Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants