phil-daniels
phil-daniels

Reputation: 646

How can a GWT app change without causing the entire thing to be downloaded again?

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

Answers (1)

Andrei Volgin
Andrei Volgin

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

Related Questions