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

Update Request to support cache option #2073

Merged
merged 3 commits into from
May 3, 2024
Merged

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Apr 30, 2024

RM-18292

Updates the Request object to support specifying a cache mode per the standard. Only undefined, 'no-store' and 'no-cache' may be specified, and the fetch implementation specifically does not implement the semantics for either 'no-store' or 'no-cache' yet. This just lays the ground work for the additional changes.

The next step is to start adding the support for adding the appropriate header fields in the fetch implementation behind an autogate.

Updates the Request object to support specifying a cache mode per
the standard. Only `undefined`, `'no-store'` and `'no-cache'` may
be specified, and the fetch implementation specifically does not
implement the semantics for either `'no-store'` or `'no-cache'` yet.
This just lays the ground work for the additional changes.
src/workerd/api/http-test.js Outdated Show resolved Hide resolved
src/workerd/api/http.c++ Outdated Show resolved Hide resolved
jasnell and others added 2 commits May 3, 2024 14:41
Co-authored-by: Dominik Picheta <dominik@cloudflare.com>
Co-authored-by: Dominik Picheta <dominik@cloudflare.com>
@jasnell jasnell merged commit bb8c8cd into main May 3, 2024
10 checks passed
harrishancock added a commit that referenced this pull request May 12, 2024
harrishancock added a commit that referenced this pull request May 12, 2024
This reverts commit bb8c8cd.

This is a temporary fix for #2116. We plan to re-add this feature behind a compatibility flag.
harrishancock added a commit that referenced this pull request May 12, 2024
…t-cache

Revert "Update Request to support cache option (#2073)"
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.

None yet

2 participants