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
Post a Comment