docs(service-worker): Specify format of datagroups.cacheConfig.timeout (#26469)

Fixes #26454

PR Close #26469
This commit is contained in:
nazanin1369 2018-10-15 22:15:33 -07:00 committed by Alex Rickabaugh
parent 83dc3c0ee0
commit 84af7b065d
1 changed files with 9 additions and 1 deletions

View File

@ -161,7 +161,15 @@ This section defines the policy by which matching requests will be cached.
For example, the string `3d12h` will cache content for up to three and a half days.
#### `timeout`
This duration string specifies the network timeout. The network timeout is how long the Angular service worker will wait for the network to respond before using a cached response, if configured to do so.
This duration string specifies the network timeout. The network timeout is how long the Angular service worker will wait for the network to respond before using a cached response, if configured to do so. `timeout` is a duration string, using the following unit suffixes:
* `d`: days
* `h`: hours
* `m`: minutes
* `s`: seconds
* `u`: milliseconds
For example, the string `5s30u` will translate to five seconds and 30 milliseconds of network timeout.
#### `strategy`