Re: [FileAPI] createObjectURL isReusable proposal

On Wed, 14 Dec 2011, Jonas Sicking wrote:
> On Wed, Dec 14, 2011 at 4:55 PM, Ian Hickson <ian@hixie.ch> wrote:
> > On Wed, 14 Dec 2011, Glenn Maynard wrote:
> >>
> >> The problem isn't the cost of the URL mapping, it's the cost of 
> >> keeping the backing Blob around.  If you drag around Google Maps for 
> >> a long time, and it used object URLs to load its tile images, it'd be 
> >> very bad if the browser had to keep every tile graphic around for the 
> >> lifetime of the page.
> >
> > Browsers do keep them around for the lifetime of the page, in their 
> > HTTP cache.
> 
> This isn't true at least for Firefox. We allow resources to be kicked 
> out of the HTTP cache even if the page that originally caused the 
> resource to be loaded is still being used.

I guess. For pages that are dealing with bazillions of images then it 
makes sense to have the page discard the blobs once they're no longer in 
use. But I am very skeptical about an API that makes that happen 
automatically, because it really makes the API as a whole quite brittle.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 15 December 2011 01:11:13 UTC