caching - Service worker runtime cache -


i creating progressive web app using service workers , using service worker toolbox cache content. service worker code cache content :

toolbox.router.get('/(.)', toolbox.fastest); toolbox.router.post('/(.)', toolbox.fastest); toolbox.router.get('/(.)', toolbox.fastest, {origin: 'https://example.cloudfront.net'}) toolbox.router.get('/(.)', toolbox.fastest, {origin: 'https://example.in'}) 

the code running fine not seeing error in console. how can check whether images cloudfront or url's configured above getting cached , rendered cache itself.

you can check cache content in chrome devtools, in resources / application tab , cache storage.

you check it's returned, in devtools network panel , '(from serviceworker)' in size column.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -