Skip to content

Commit ebeb2d8

Browse files
Update src/content/docs/workers/runtime-apis/cache.mdx
Co-authored-by: Brendan Irvine-Broque <[email protected]>
1 parent a2cb294 commit ebeb2d8

File tree

1 file changed

+1
-1
lines changed
  • src/content/docs/workers/runtime-apis

1 file changed

+1
-1
lines changed

src/content/docs/workers/runtime-apis/cache.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ await myCache.match(request);
5353
When using the cache API, avoid overriding the hostname in cache requests, as this can lead to unnecessary DNS lookups and cache inefficiencies. Always use the hostname that matches the domain associated with your Worker.
5454

5555
```js
56-
// avoid overriding the URL in request or passing a new request into the cache API
56+
// Do not do this
5757
request.url = "https://some-overridden-value.com/";
5858

5959
let myCache = await caches.open('custom:cache');

0 commit comments

Comments
 (0)