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