New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 773990 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

no cache control but still read from disk cache when download img

Reported by denghong...@gmail.com, Oct 12 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Example URL:
https://en.wikipedia.org/wiki/IMG_(company)

Steps to reproduce the problem:
1. open https://en.wikipedia.org/wiki/IMG_(company) in chrome
2. check inspector network tab, filter out img belongs to https://upload.wikimedia.org
3. refresh tab
4. img will directly read from disk/memory instead of validate

What is the expected behavior?
Safari, Firefox will validate img by sending a request with etag to server

What went wrong?
response without cache-control, but with etag, must be validated.

Did this work before? N/A 

Chrome version: 61.0.3163.100  Channel: stable
OS Version: OS X 10.12.3
Flash Version: Shockwave Flash 27.0 r0
 
QQ20171012-151224.png
128 KB View Download

Comment 1 Deleted

how heuristic work? any document?
Labels: Needs-Triage-M61
Cc: krajshree@chromium.org
Components: Platform>DevTools>Network
Labels: Needs-Feedback
Unable to reproduce the issue in Win-10 and MacBook Pro (Retina, 15-inch, Mid 2014), 10.12.6 using chrome reported version #61.0.3163.100 and latest canary #64.0.3241.0.

Following are the steps followed to reproduce the issue.
------------
1. opened https://en.wikipedia.org/wiki/IMG_(company) in chrome
2. checked inspector network tab, filtered out img belonging to https://upload.wikimedia.org
3. refreshed tab
4. Observed that in the header's section there was response with cache-control and validated img by sending a request with etag to server as expected.

Attaching screen cast for reference.

denghongcai@ - Could you please verify the screen cast and please let us know if any thing missed from our side. Also please check the issue on latest canary #64.0.3241.0 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.

Thanks...!!
773990.mp4
2.7 MB View Download

Comment 5 by caseq@chromium.org, Oct 17 2017

Components: -Platform>DevTools>Network
the image whose name starts with 45px

from your captured screen video, it reads from cache without cache-control
Project Member

Comment 7 by sheriffbot@chromium.org, Oct 18 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "krajshree@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

Comment 8 by asanka@chromium.org, Oct 19 2017

Cc: asanka@chromium.org
Components: -Internals>Network Internals>Network>Cache
This resource in the screenshot in #0 has a large age. In the absence of any explicit lifetime indicator, it looks like the UA is well within the requirements for assuming the resource is fresh based on the freshness_lifetime heuristic.

The presence of the Etag itself doesn't mandate revalidation.

I'll add the cache folks who might have a more definitive answer.
Could someone from Internals>Network>Cache team please take a look into this issue.
Thanks..!
To be more explicit about the heuristic, it uses 10% of time between now and last-modified if that is available, and the response code is appropriate for that (which includes 200) which is the heuristic suggested in section 4.2.2 of RFC 7234:
https://tools.ietf.org/html/rfc7234#section-4.2.2

"   If the response has a Last-Modified header field (Section 2.2 of
   [RFC7232]), caches are encouraged to use a heuristic expiration value
   that is no more than some fraction of the interval since that time.
   A typical setting of this fraction might be 10%.
"

If you always want the resource to be revalidated, please consider something like must-revalidate or max-age=0.
Status: WontFix (was: Unconfirmed)
Closing issue since the current behavior is compliant.

Sign in to add a comment