Skip to content

Add setting to mark paths varying by accept header as uncacheable #3100

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

Open
3 tasks done
MrKaplan-lw opened this issue Apr 19, 2025 · 0 comments
Open
3 tasks done

Add setting to mark paths varying by accept header as uncacheable #3100

MrKaplan-lw opened this issue Apr 19, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@MrKaplan-lw
Copy link
Contributor

Requirements

  • This is a feature request and not a bug report. Otherwise, please create a new bug report instead.
  • Please check to see if this request (or a similar one) already exists.
  • It's a single feature. Please don't request multiple features in one issue.

Describe the feature you'd like

As mentioned in #3099, various CDNs/caches don't support (as in ignore) the Vary header.
As a result, instance operators using a cache ignoring the vary header are required to do one of the following:

  • disable caching entirely
  • set up custom cache rules to disable caching for paths used by both Lemmy and Lemmy-UI
  • set up custom cache keys if supported (Cloudflare locks this behind their enterprise plan)

To simplify setups, Lemmy-UI should have an option to explicitly mark paths used by both Lemmy and Lemmy-UI with cache-control: private, similar to how responses for authenticated users are treated.
This should not affect URLs that are exclusive to either Lemmy or Lemmy-UI, like static Lemmy-UI assets.

Related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant