Dynamic-import (and routes) and appcache

Is there a way to tie appcache to specific routes? I have included it in my project, but it includes all JS files in the app manifest (including admin stuff). I only want it to cache the presentation side, not the administration js files, which is the bulk of the app, and unneeded for presentation.

Is there a way to limit the app cache to just a set of modules or to a route?

using dynamic import ?

I got a bunch of ways to do this with a patch I wrote for appcache for preloading dynamic-import modules, and tools like React Loadable with some ways to cloak dynamic bundles so that they don’t get eagerly loaded. You can see it configured in my starter.

2 Likes