Tuesday, November 10, 2009

Force image caching in gallery

Hi there

I've setup a basic GWT app that's essentially an image gallery. The
gallery works by updating an Image widget with widget.setURL('url')
either by clicking a forward or back button. To reduce bandwidth, the
images are only loaded as they're requested (ie. by clicking the
forward button).

However, images are being forcibly reloaded when a use clicks the back
button rather than retrieving a cached image stored by the client's
browser. Obviously, in an attempt to speed the page load and reduce
bandwidth, it would be preferable to use a cached image rather than
reloading the same image every time it's requested.

Has anybody else had this problem and is there any way around this?

--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate