-
-
Notifications
You must be signed in to change notification settings - Fork 372
Description
I would call this "mild priority" right now, simply because, as is, bundle.js is the majority of the application weight//network transfer. It's set for a maximum of 1 hour, which means that users will need to redownload an entire application, regardless of any changes it may or may not have had. Plus, this kind of impedes the function of offline/sw-precache.
Also, in the rare event that my app goes from v1 to v2 within the hour that User has cached my bundle, their next request would grab all the v2 chunks & sw.js, which still points to non-versioned bundle.js, which results in User working with a mismatched set of assets... the majority of which (in bundle) is now outdated.
If we're on the same page here, we'd need to:
- Version
bundle.js, like everything else - Update server headers; would up it to 1YR
- Replace the HTML
bundle.jslink per-build; handled byhtml-webpack-plugin
This all applies to style.css as well: same tasks & reasoning.