The Image cache does not honor do not cache http headers
Reported by
don.spar...@gmail.com,
Mar 15 2017
|
||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Example URL: Steps to reproduce the problem: 1. download a bunch ( 10,000+) image with do not cache headers set 2. watch the image cache grow 3. What is the expected behavior? That the browser honors the do not cache http headers What went wrong? The image cache size grew to 10+ Gigs Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 59.0.3042.0 (Developer Build) (64-bit) Channel: n/a OS Version: OS X 10.10.5 Flash Version: Shockwave Flash 25.0 r0 The screenshot in the attachment shows the image cache in chrome the cache goes up and down ( this is also annoying ) but come down eventually BUT in chromium it NEVER comes down
,
Mar 15 2017
A 10GB image cache seems excessive. Note that the image cache isn't part of the disk cache (which is persistent). The image cache is part of the memory cache, thus changing the component.
,
Mar 15 2017
,
Apr 4 2017
"Image Cache" is somewhat confusing name, it's more like the total amount of memory the tab is using for images. Does your test page actually load images of gigabytes?
,
Apr 4 2017
Yes it does actually load images of gigabytes?
,
Apr 4 2017
Thank you for providing more feedback. Adding requester "ksakamoto@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 4 2017
> 1. download a bunch ( 10,000+) image with do not cache headers set How did you "download" the images? Did you open a HTML page with many <img> elements, or did you open a HTML page with many links to image files and download the links?
,
Apr 4 2017
the page uses javascript Image object to this.imageObj.src = url; where this.imageObj = new Image(); and/or a blob reader from this.imageObj.src =reader.result; where this.xg = new XML HttpRequest(); .... blob = xg.result; .... blobReader = new FileReader(); ... reader.readAsDataURL(blob);
,
Apr 4 2017
Hmm. - Does the "Image Cache" column decrease when clicking DevTools' "Collect Garbage" button (e.g. in DevTools Memory tab)? - The "Memory" column is "184MB", while "Image Cache" is 10GB. Does Chrome actually consumes 10GB of memory on your machine (or just 184MB)? I tested some suspected causes locally but couldn't reproduced. If we can have a URL to test it would be quite helpful.
,
Apr 4 2017
checking and unchecking "Disable Cache" causes it to go way down. leaving it checked or unchecked it climes
,
Apr 5 2017
+hajimehoshi@ who might know more about image memory consumption and its reporting.
,
Apr 12 2017
triager assigning this to hajimehoshi@
,
Apr 12 2017
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by rsesek@chromium.org
, Mar 15 2017