Friday, September 3, 2010

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

Maybe try asking the server for a base64 encoded image and then save
the string, and once you need to display your image you can do:
data:image/png;base64,BASE64_ENCODED_IMAGE_HERE
in the src value of an image tag.

On 3 ספטמבר, 16:59, dduck <anders.johansen.a...@gmail.com> wrote:
> On 3 Sep., 14:37, Thomas Broyer <t.bro...@gmail.com> wrote:
>
> > On Sep 3, 2:24 pm, dduck <anders.johansen.a...@gmail.com> wrote:
> > 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.
>
> Unfortunately it seems that most browsers are smart enough to cache
> images that have been fully transfered, but not smart enough to
> consolidate overlapping requests such as this:
>
> time:0 fetch image1
> time:10 fetch image1
> time:20 Image 1 ready

--
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