[w3c/ServiceWorker] is it possible to stop browser to refetch scripts and reevaluate them if they haven't changed? (#978)

I'm currently using service worker (using sw-precache) to cache my React app vendor.js(2.14MB)  and app.js(212kb) scripts along with some other assets.  however, on page reload all my assets are fetched again and the response 200 comes from service worker (cache), but all scripts are complied and reevaluated.  So the app shell disappears for a little over a second and reappears. IS is possible to stop browser from fetching the vendor script or the app script if it hasn't changed and evaluating it again ? my service worker script does run first before vendor.js and app.js so I can check if my cached resources have changed? That way the on reload the appshell renders near instantly. 

-- 
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/978

Received on Wednesday, 14 September 2016 10:33:51 UTC