[w3c/ServiceWorker] service worker source file is requesting from the server every time any navigation occurs in the page/ an frame is embedded in the page (#1351)

Is there any possibility to cache service worker file for at least 24 hours? I have tried providing cache-control: public, max-age=1440. but it's not working. 

Also, If a page contains an iframe and if you reload that iframe alone, sw.js(service worker script) is getting downloaded from the server. 

Any idea why this is happening? How to avoid this?


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1351

Received on Thursday, 6 September 2018 14:45:55 UTC