- From: jasan-s <notifications@github.com>
- Date: Wed, 14 Sep 2016 03:33:21 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 14 September 2016 10:33:51 UTC
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