Skip to content

Conversation

@guybedford
Copy link
Contributor

Adds support for cacheKey in Request initialization, which was previously omitted, and fixes the test case that was supposed to test for this.

We don't use an internal slot for cacheKey since it is effectively a header-manipulating function, where that header manipulation is observable to users. If we want to use an internal slot, that would be a breaking change at this point to provide a header alteration from such a slot that exists only as observable to the host.

Note that this is implemented in the parallel StarlingMonkey branch while this port is in progress... a fact of life during this port process!

Resolves #768.

Copy link
Contributor

@elliottt elliottt 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!

@guybedford guybedford merged commit b64b22e into main May 7, 2024
@guybedford guybedford deleted the cache-key-init branch May 7, 2024 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Setting cacheKey on Request constructor or during fetch does not work

3 participants