New issue
Advanced search Search tips

Issue 701807 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Compat



Sign in to add a comment

The Image cache does not honor do not cache http headers

Reported by don.spar...@gmail.com, Mar 15 2017

Issue description

UserAgent: 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
 
Screen Shot 2017-03-15 at 11.38.16 AM.png
63.3 KB View Download

Comment 1 by rsesek@chromium.org, Mar 15 2017

Components: Internals>Network>Cache
Components: -Internals>Network>Cache Blink>Loader
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.
Labels: Needs-Triage-M56
Cc: hirosh...@chromium.org
Labels: Needs-Feedback
"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?

Yes it does actually load images of gigabytes?
Project Member

Comment 6 by sheriffbot@chromium.org, Apr 4 2017

Cc: ksakamoto@chromium.org
Labels: -Needs-Feedback
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
> 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?
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);


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.

checking and unchecking "Disable Cache" causes it to go way down. 
leaving it checked or unchecked it climes 
Screen Shot 2017-04-04 at 5.19.30 PM.png
230 KB View Download
Screen Shot 2017-04-04 at 5.25.07 PM.png
181 KB View Download
Cc: hajimehoshi@chromium.org
+hajimehoshi@ who might know more about image memory consumption and its reporting.
Labels: Stability-Memory
Owner: hajimehoshi@chromium.org
triager assigning this to hajimehoshi@
Status: Assigned (was: Unconfirmed)

Sign in to add a comment