Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit e12d3ac

Browse files
mickeywujeffposnick
authored andcommitted
Update documentation for toolbox.precache (#234)
1 parent 1211eb3 commit e12d3ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Like `toolbox.router.get`, etc., but matches any HTTP method.
9191
Takes a function to use as the request handler for any GET request that does not match a route.
9292

9393
### `toolbox.precache(arrayOfURLs)`
94-
Add each URL in arrayOfURLs to the list of resources that should be cached during the service worker install step. Note that this needs to be called before the install event is triggered, so you should do it on the first run of your script.
94+
Add each URL in arrayOfURLs to the list of resources that should be cached during the service worker install step. URLs in the array can either be a String or Request object. Note that this needs to be called before the install event is triggered, so you should do it on the first run of your script.
9595

9696
### `toolbox.cache(url, options)`
9797
Causes the resource at `url` to be added to the cache and returns a Promise that resolves with void. The `options` parameter supports the `debug` and `cache` [global options](#options).

0 commit comments

Comments
 (0)