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

List of all the routes required? #157

Closed
antranigv opened this issue Jul 8, 2022 · 8 comments
Closed

List of all the routes required? #157

antranigv opened this issue Jul 8, 2022 · 8 comments
Labels

Comments

@antranigv
Copy link

Hi there! First of all, huge love to everyone involved in this project, it brings hope to the web!

My question is simple: Is there a list for all the routes that this plugin requires?

The reason why I'm asking is because I have a caching plugin (WP Rocket I think) and I'd like to disable caching in those routes, otherwise it's breaking.

Thanks in advance!

@pfefferle
Copy link
Member

Good point, I will collect all routes and send you the list, but I will also add this info to the settings page.

@pfefferle
Copy link
Member

And I am glad you like the plugin ☺️

@mwt
Copy link

mwt commented Sep 25, 2022

@antranigv it's working for me so far with this rule in nginx and fastcgi cache

# Skip cache if requesting json file (ActivityPub)
if ($http_accept ~* "application/ld\+json|application/activity\+json|application/json") {
        set $skip_cache 1;
}

and then later set fastcgi_cache_bypass and fastcgi_no_cache to $skip_cache. I've never used WP rocket, but maybe it also lets you bypass the cache based on header rules? In plain language the rule says:

Bypass the cache if the Accept header contains application/ld+json OR application/activity+json OR application/json.

I'm not sure if this causes issues in edge cases though.

@andypiper
Copy link

Good point, I will collect all routes and send you the list, but I will also add this info to the settings page.

I'm just getting started with this and think another caching plugin (WP-SuperCache) has been causing me some headaches, so I would also be interested in a list of routes or better information about how to avoid problematic cache interactions.
Thanks 👍🏻 excited to use this to have our site join the Fediverse!

@mwt
Copy link

mwt commented Oct 29, 2022

I think that any cache plugin will break it for sure if you don't exclude things. The plugin requires posts and author pages to be served in json when requested with the headers I mentioned. If you cache those pages as json, they won't be human readable and if you cache them as html, they won't be readable by AP instances.

You need to either bypass the cache or use a separate cache token when these headers are present. I know how to do that with fastcgi and Cloudflare, but I don't know about other plugins.

@stale
Copy link

stale bot commented Feb 27, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the [Status] wontfix This will not be worked on label Feb 27, 2023
@mediaformat mediaformat removed the [Status] wontfix This will not be worked on label Feb 27, 2023
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Oct 4, 2023
@mediaformat mediaformat removed the Stale label Oct 5, 2023
Copy link

github-actions bot commented Feb 2, 2024

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Feb 2, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants