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)
87
88
-[Azure](#azure)
88
89
-[Firebase](#firebase)
@@ -1788,8 +1789,14 @@ is integrated into production configuration,
1788
1789
and it will take care of generating a service worker file that will automatically
1789
1790
precache all of your local assets and keep them up to date as you deploy updates.
1790
1791
The service worker will use a [cache-first strategy](https://developers.google.com/web/fundamentals/instant-and-offline/offline-cookbook/#cache-falling-back-to-network)
1791
-
for handling all requests for local assets, including the initial HTML, ensuring
1792
-
that your web app is reliably fast, even on a slow or unreliable network.
1792
+
for handling all requests for local assets, including
for `/` and `/index.html`, ensuring that your web app is consistently fast, even
1795
+
on a slow or unreliable network.
1796
+
1797
+
>Note: If you are using the `pushState` history API and want to enable
1798
+
cache-first navigations for URLs other than `/` and `/index.html`, please
1799
+
[follow these steps](#service-worker-considerations).
1793
1800
1794
1801
### Opting Out of Caching
1795
1802
@@ -1992,21 +1999,37 @@ If you’re using [Apache Tomcat](http://tomcat.apache.org/), you need to follow
1992
1999
1993
2000
Now requests to `/todos/42` will be handled correctly both in development and in production.
1994
2001
1995
-
On a production build, and in a browser that supports [service workers](https://developers.google.com/web/fundamentals/getting-started/primers/service-workers),
1996
-
the service worker will automatically handle all navigation requests, like for
1997
-
`/todos/42`, by serving the cached copy of your `index.html`. This
1998
-
service worker navigation routing can be configured or disabled by
1999
-
[`eject`ing](#npm-run-eject) and then modifying the
and [`navigateFallbackWhitelist`](https://github.com/GoogleChrome/sw-precache#navigatefallbackwhitelist-arrayregexp)
2002
-
options of the `SWPreachePlugin` [configuration](../config/webpack.config.prod.js).
2003
-
2004
-
When users install your app to the homescreen of their device the default configuration will make a shortcut to `/index.html`. This may not work for client-side routers which expect the app to be served from `/`. Edit the web app manifest at [`public/manifest.json`](public/manifest.json) and change `start_url` to match the required URL scheme, for example:
2002
+
When users install your app to the homescreen of their device the default
2003
+
configuration will make a shortcut to `/index.html`. This may not work for
2004
+
client-side routers which expect the app to be served from `/`. Edit the web app
2005
+
manifest at [`public/manifest.json`](public/manifest.json) and change
2006
+
`start_url` to match the required URL scheme, for example:
0 commit comments