You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Building for Relative Paths](#building-for-relative-paths)
88
87
-[Customizing Environment Variables for Arbitrary Build Environments](#customizing-environment-variables-for-arbitrary-build-environments)
89
88
-[Azure](#azure)
@@ -1753,9 +1752,9 @@ Offline-first Progressive Web Apps are faster and more reliable than traditional
1753
1752
1754
1753
- All static site assets are cached so that your page loads fast on subsequent visits, regardless of network connectivity (such as 2G or 3G). Updates are downloaded in the background.
1755
1754
- Your app will work regardless of network state, even if offline. This means your users will be able to use your app at 10,000 feet and on the subway.
1756
-
- On mobile devices, your app can be added directly to the user's home screen, app icon and all. You can also re-engage users using web **push notifications**. This eliminates the need for the app store.
1755
+
- On mobile devices, your app can be added directly to the user's home screen, app icon and all. This eliminates the need for the app store.
1757
1756
1758
-
The [`sw-precache-webpack-plugin`](https://github.com/goldhand/sw-precache-webpack-plugin)
1757
+
The [`workbox-webpack-plugin`](https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin)
1759
1758
is integrated into production configuration,
1760
1759
and it will take care of generating a service worker file that will automatically
1761
1760
precache all of your local assets and keep them up to date as you deploy updates.
@@ -1793,17 +1792,6 @@ following into account:
1793
1792
instructions for using other methods. _Be sure to always use an
1794
1793
incognito window to avoid complications with your browser cache._
1795
1794
1796
-
1. If possible, configure your production environment to serve the generated
If that's not possible—[GitHub Pages](#github-pages), for instance, does not
1799
-
allow you to change the default 10 minute HTTP cache lifetime—then be aware
1800
-
that if you visit your production site, and then revisit again before
1801
-
`service-worker.js` has expired from your HTTP cache, you'll continue to get
1802
-
the previously cached assets from the service worker. If you have an immediate
1803
-
need to view your updated production deployment, performing a shift-refresh
1804
-
will temporarily disable the service worker and retrieve all assets from the
1805
-
network.
1806
-
1807
1795
1. Users aren't always familiar with offline-first web apps. It can be useful to
1808
1796
[let the user know](https://developers.google.com/web/fundamentals/instant-and-offline/offline-ux#inform_the_user_when_the_app_is_ready_for_offline_consumption)
1809
1797
when the service worker has finished populating your caches (showing a "This web
@@ -1818,12 +1806,7 @@ following into account:
1818
1806
1819
1807
1. By default, the generated service worker file will not intercept or cache any
1820
1808
cross-origin traffic, like HTTP [API requests](#integrating-with-an-api-backend),
1821
-
images, or embeds loaded from a different domain. If you would like to use a
1822
-
runtime caching strategy for those requests, you can [`eject`](#npm-run-eject)
0 commit comments