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
Copy file name to clipboardExpand all lines: README.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,8 @@ Builds the app for production to the `build` folder.<br>
93
93
It correctly bundles React in production mode and optimizes the build for the best performance.
94
94
95
95
The build is minified and the filenames include the hashes.<br>
96
-
Your app is ready to be deployed!
96
+
A [service worker](https://developers.google.com/web/fundamentals/getting-started/primers/service-workers) using an [offline-first caching strategy](https://developers.google.com/web/fundamentals/instant-and-offline/offline-cookbook/#cache-falling-back-to-network) is automatically generated.<br>
97
+
Your ([progressive web](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#making-a-progressive-web-app)) app is ready to be deployed!
@@ -1083,13 +1105,13 @@ will temporarily disable the service worker and retrieve all assets from the
1083
1105
network.
1084
1106
1085
1107
1. Users aren't always familiar with offline-first web apps. It can be useful to
1086
-
let the user know when the service worker has finished populating your caches
1087
-
(showing a "This web app works offline!" message) and also let them know when
1088
-
the service worker has fetched the latest updates that will be available the
1089
-
next time they load the page (showing a "New content is available; please
1090
-
refresh." message). Showing this messages is currently left as an exercise to
1091
-
the developer, but as a starting point, you can make use of the logic included
1092
-
in [`src/register-service-worker.js`](src/register-service-worker.js), which
1108
+
[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)
1109
+
when the service worker has finished populating your caches (showing a "This web
1110
+
app works offline!" message) and also let them know when the service worker has
1111
+
fetched the latest updates that will be available the next time they load the
1112
+
page (showing a "New content is available; please refresh." message). Showing
1113
+
this messages is currently left as an exercise to the developer, but as a
1114
+
starting point, you can make use of the logic included in [`src/register-service-worker.js`](src/register-service-worker.js), which
1093
1115
demonstrates which service worker lifecycle events to listen for to detect each
1094
1116
scenario, and which as a default, just logs appropriate messages to the
0 commit comments