Skip to content

Commit

Permalink
docs: update (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
aui authored Apr 18, 2024
1 parent f5d34df commit c8aae76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ globalThis.caches = caches;
When the above global `caches` object is ready, you can also register the globally registered cacheable `fetch`:

```ts
import { fetch, type SharedCacheFetch } from '@web-widget/shared-cache';
import { fetch, type Fetch } from '@web-widget/shared-cache';

declare global {
interface WindowOrWorkerGlobalScope {
fetch: SharedCacheFetch;
fetch: Fetch;
}
}

Expand Down Expand Up @@ -320,7 +320,7 @@ Host determines which host header to include in the Cache Key.

#### Cookie

Like `query_string` or `header`, `cookie` controls which cookies appear in the Cache Key. You can either include the cookie value or check for the presence of a particular cookie.
Like `search` or `header`, `cookie` controls which cookies appear in the Cache Key. You can either include the cookie value or check for the presence of a particular cookie.

#### Device

Expand Down

0 comments on commit c8aae76

Please sign in to comment.