Skip to content

Commit

Permalink
docs: fixed document type cacheStartURL => cacheStartUrl (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
aNyMoRe0505 authored Jul 27, 2023
1 parent abac0c4 commit 5b46293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/next-pwa/configuring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default withPWA({

- `aggressiveFrontEndNavCaching` — Cache every `<link rel="stylesheet" />` and `<script />` on frontend navigation. Requires `cacheOnFrontEndNav` to be enabled.

- `cacheStartURL` — Turn on caching for the start URL.
- `cacheStartUrl` — Turn on caching for the start URL.

- `dynamicStartUrl` — If your start URL returns different HTML document under different states (such as logged in and not logged in), this
should be set to true if you also use `cacheStartUrl`. Effective only when `cacheStartUrl` is set to `true`.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/(home)/code-showcase.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const withPWA = require("@ducanh2912/next-pwa").default({
// scope: "/app",
// sw: "service-worker.js",
// customWorkerDir: "service-worker",
// cacheStartURL: true,
// cacheStartUrl: true,
// dynamicStartUrl: true,
// dynamicStartUrlRedirect: "/foo/bar",
// cacheOnFrontendNav: true,
Expand Down

0 comments on commit 5b46293

Please sign in to comment.