From 84af7b065d1345553f01b1bab1d6c0640c2a94e9 Mon Sep 17 00:00:00 2001 From: nazanin1369 Date: Mon, 15 Oct 2018 22:15:33 -0700 Subject: [PATCH] docs(service-worker): Specify format of datagroups.cacheConfig.timeout (#26469) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #26454 PR Close #26469 --- aio/content/guide/service-worker-config.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/aio/content/guide/service-worker-config.md b/aio/content/guide/service-worker-config.md index 6cd9cc13a4..662abdeeaf 100644 --- a/aio/content/guide/service-worker-config.md +++ b/aio/content/guide/service-worker-config.md @@ -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`