mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 01:47:17 +02:00
docs: prepare docs for MDX 2 (#8782)
This commit is contained in:
parent
07c57a1528
commit
9c920c531b
36 changed files with 112 additions and 70 deletions
|
@ -78,7 +78,11 @@ App installation requires the HTTPS protocol and a valid manifest.
|
|||
|
||||
We enable users to browse a Docusaurus site offline, by using service-worker precaching.
|
||||
|
||||
> ### [What is Precaching?](https://developers.google.com/web/tools/workbox/modules/workbox-precaching)
|
||||
> <h3>
|
||||
> <a href="https://developers.google.com/web/tools/workbox/modules/workbox-precaching">
|
||||
> {'What is Precaching?'}
|
||||
> </a>
|
||||
> </h3>
|
||||
>
|
||||
> One feature of service workers is the ability to save a set of files to the cache when the service worker is installing. This is often referred to as "precaching", since you are caching content ahead of the service worker being used.
|
||||
>
|
||||
|
@ -120,7 +124,7 @@ Strategies used to turn the offline mode on:
|
|||
- `appInstalled`: activates for users having installed the site as an app (not 100% reliable)
|
||||
- `standalone`: activates for users running the app as standalone (often the case once a PWA is installed)
|
||||
- `queryString`: activates if queryString contains `offlineMode=true` (convenient for PWA debugging)
|
||||
- `mobile`: activates for mobile users (width <= 996px)
|
||||
- `mobile`: activates for mobile users (`width <= 996px`)
|
||||
- `saveData`: activates for users with `navigator.connection.saveData === true`
|
||||
- `always`: activates for all users
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue