Skip to content

Commit e6b0d0f

Browse files
committed
Add {cache: no-cache} to Workers cache
1 parent 5b217bb commit e6b0d0f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/docs/workers/examples/cache-using-fetch.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,10 @@ async function handleRequest(request) {
469469
470470
## Using the HTTP Cache API
471471
472-
The `cache` mode can be set in `fetch` options.
473-
Currently Workers only support the `no-store` mode for controlling the cache.
472+
The [`cache`](https://developer.mozilla.org/en-US/docs/Web/API/RequestInit#cache) mode can be set in `fetch` options.
473+
474+
Currently Workers only support the `no-store` and `no-cache` modes for controlling the cache.
475+
474476
When `no-store` is supplied the cache is bypassed on the way to the origin and the request is not cacheable.
475477
476478
```js

0 commit comments

Comments
 (0)