← offliner-source-cache.js |
|
---|---|
How to write an offline source |
|
Remember including offliner will export the |
|
A source is a function that will be passed with a request and the active offline cache. The source must return a promise resolving with the proper response or rejecting when response is not available. |
|
Notice how we resolve with the response if there is a match in the cache of reject otherwise. |
|