Friday, September 3, 2010

Re: Can I copy an image to avoid re-requesting from url?

On Sep 3, 2:24 pm, dduck <anders.johansen.a...@gmail.com> wrote:
> Hi,
>
> I have written a GWT client that among other things requests images
> that are generated server-side. To conserve bandwith and server CPU, I
> would like to cache the images in an url -> image map. To do that
> properly, I would need to be able to copy an image as in final Image
> myImage = new Image(cache.get(url));
>
> Is this possible?

No (to my knowledge).

If you want to cache images, you have to have your server send the
appropriate HTTP headers so the browser itself appropriately uses the
image from its cache.

--
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=en.

No comments:

Post a Comment