Reputation: 646
I like GWT cache control a lot, but I see a downside and I'm wondering if anyone knows of any solution/work around. If I make a small change to my app (ie. add a character to some text), GWT will rename the .cache.js file causing any cached files in the user's browser to be tossed. I was hoping code splitting would result in a small change only causing that "code split" to be re-downloaded, but GWT is renaming the folder that contains the splits so the whole thing is still downloaded. Any ideas on how to isolate changes to cause only a portion of the app to be re-downloaded?
Upvotes: 0
Views: 42
Reputation: 41089
If you have a lengthy text (e.g. an explanation, a help article, etc.), you can externalize it. This way it won't be a part of the compiled code.
Other than this, there is currently no way to isolate changes so that only a portion of the app redownloads.
Upvotes: 1