Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/content/docs/workers/examples/cache-using-fetch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,10 @@ async function handleRequest(request) {

## Using the HTTP Cache API

The `cache` mode can be set in `fetch` options.
Currently Workers only support the `no-store` mode for controlling the cache.
The [`cache`](https://developer.mozilla.org/en-US/docs/Web/API/RequestInit#cache) mode can be set in `fetch` options.

Currently Workers only supports the `no-store` and `no-cache` modes for controlling the cache.

When `no-store` is supplied the cache is bypassed on the way to the origin and the request is not cacheable.

```js
Expand Down
Loading