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

Add xkey support #38

Merged
merged 3 commits into from
May 29, 2024
Merged

Add xkey support #38

merged 3 commits into from
May 29, 2024

Conversation

ludovicm67
Copy link
Member

Add xkey support in order to support tag-based invalidation.

The backend can now send a xkey header with a value that will be used to tag the cache entry.
This tag can be used to invalidate the cache entry by sending a PURGE request with the xkey header set to the same value like this:

curl -sL -X PURGE -H 'xkey: TAG_VALUE' http://varnish-endpoint/

Doing this will remove all cache entries that have the same tag value.

@ludovicm67 ludovicm67 added the enhancement New feature or request label May 29, 2024
@ludovicm67 ludovicm67 self-assigned this May 29, 2024
Copy link

changeset-bot bot commented May 29, 2024

🦋 Changeset detected

Latest commit: 826b62c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
varnish-post Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ludovicm67 ludovicm67 merged commit e7e3a6a into main May 29, 2024
1 check passed
@ludovicm67 ludovicm67 deleted the xkey branch May 29, 2024 10:42
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

Successfully merging this pull request may close these issues.

1 participant