Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Allow for cacheTags to be passed on fetch requests #247

Merged
merged 2 commits into from
Jun 13, 2022

Conversation

iveelsm
Copy link
Contributor

@iveelsm iveelsm commented Jun 6, 2022

Allowing cacheTags within the workers process to be processed as part of a standard fetch has been a highly requested feature. This new object within the request initialization will allow for supplemental Cache-Tag headers to be returned so that they can be stored with the relevant content. This will allow for better control over Purge by Tag mechanisms within the workers processes.

Implementation:

  • Adds a new object to the cf.d.ts declaration.

@iveelsm iveelsm added the enhancement New feature or request label Jun 6, 2022
@changeset-bot
Copy link

changeset-bot bot commented Jun 6, 2022

🦋 Changeset detected

Latest commit: 3dda888

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

This PR includes changesets to release 1 package
Name Type
@cloudflare/workers-types 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

@iveelsm iveelsm requested a review from mrbbot June 10, 2022 15:36
@petebacondarwin petebacondarwin self-assigned this Jun 10, 2022
overrides/cf.d.ts Show resolved Hide resolved
overrides/cf.d.ts Outdated Show resolved Hide resolved
overrides/cf.d.ts Outdated Show resolved Hide resolved
Allowing cacheTags within the workers process to be processed as part of a standard fetch has been a highly requested feature. This new object within the request initialization will allow for supplemental Cache-Tag headers to be returned so that they can be stored with the relevant content. This will allow for better control over Purge by Tag mechanisms within the workers processes.

Implementation:

* Adds a new object to the `cf.d.ts` declaration.
Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks @iveelsm.
I added a "change set" so that we update the changelog appropriately on release.
For future reference you can do this by running npx changeset in the root of the project.

@petebacondarwin petebacondarwin merged commit 2cdc8cf into master Jun 13, 2022
@petebacondarwin petebacondarwin deleted the mikey/add-cache-tags branch June 13, 2022 07:42
@github-actions github-actions bot mentioned this pull request Jun 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants