We store the required subset of the application in local storage 
(or in WebSQL or in IndexedDB  depending on browsers). We also make
heavy use of the AppCache [3,4] spec to cache the application code and
We also treat user supplied data such as images much like the rest of
the server supplied data and store it in local storage and friends.
There is a few more difficulties to load data out of appcache as
images but a google search turns up a few overviews .
We wrote gwt-appcache to help with your point 2 and it is available in
maven central and documented at
Hope that helps.
On Thu, Aug 28, 2014 at 4:16 AM, Nikola Ljumovic
> Hi all,
> I have to enable my app to work in offline mode and to continue working even
> if the browser is reloaded. I'm currently struggling with caching. I thought
> of doing the following:
> Get all the needed data from the server when the application loads (list of
> app users, user roles, customers, configuration data, etc.) and cache it on
> the client using LocalStorage. Is this the right way to do it?
> Get all static resources (mostly images, button icons, etc) by using
> ClientBundle. This, if i'm not mistaken will also perform caching but I'm
> not sure if these resources will remain cached even if the client is offline
> and the browser is refreshed?
> In my app users define their own button layout and can upload their own
> images and use them in the layout. Therefore, when application loads I need
> to get these images from the server and cache them on the client to enable
> the layout to show correctly. Do you have any sugesstions on how should I do
> this, since these images are not predefined in compile time but instead they
> are defined by user in the runtime, and therefore I can't use ClientBundle.
> I would really appreciate your help on this, especially on the last issue .
> Thanks in advance!
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to email@example.com.
> To post to this group, send email to firstname.lastname@example.org.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To post to this group, send email to firstname.lastname@example.org.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.