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

feat: add ability to disable cache tags for admin thumbnails #10319

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

paulpopus
Copy link
Contributor

@paulpopus paulpopus commented Jan 3, 2025

This PR adds cacheTags: boolean (default true) to allow users to disable the appended document updatedAt value in the case of hosting with third party CDNs which may not allow additional search params and throw an error.

It also fixes how we append this value to consider the case where the URL already contains parameters and appends it with & instead.

In the future cacheTags can be made an object to allow granularity for disabling eTag headers used for caching as well.

The cache tag control should help with these two issues:

The appending of the value correctly addresses this:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant