New issue
Advanced search Search tips

Issue 873625 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 16
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Vary:Origin not honored on 304 responses

Reported by simon.ob...@gmail.com, Aug 13

Issue description

UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Example URL:
https://orfondevtest01.orf.at/cors-304.html

Steps to reproduce the problem:
1. Load https://orfondevtest01.orf.at/cors-304.html
2. Observe that the CORS fetch requests succeeds
3. Load http://orfondevtest01.orf.at/cors-304.html
4. Fetch requests fails

What is the expected behavior?
Chrome should not reuse the cached CORS response if a 304 is returned but the Origin is now different.

What went wrong?
It seems chrome stores the response and re-uses it for 304 responses even though the origin is now different; all involved responses set the Vary:Origin

Did this work before? No 

Chrome version: Version 68.0.3440.106 (Official Build) (64-bit)  Channel: n/a
OS Version: ubuntu bionic
Flash Version:
 
Labels: Needs-Triage-M68
Components: -Internals>Network Internals>Network>Cache
It looks like we send a re-validation request, as required when there's a vary tag mismatch, and the server responds telling us to re-use the old response, without an updated origin header.  Looks like it's the server that's misbehaving to me, though I'm not cache expert.
Looks OK to send a conditional request for me per: 
https://tools.ietf.org/html/rfc7234#section-4.3
Vary mismatch here is the "can't be selected" part.

Indeed chrome behaviour seems ok. I have amended the relevant issue at apache https://bz.apache.org/bugzilla/show_bug.cgi?id=51223


Cc: susan.boorgula@chromium.org
Labels: Needs-Feedback
simon.oberhammer@ Thanks for the update.

As per comment #4, can you please confirm if this issue can be closed?

Thanks..
yes, close it
Project Member

Comment 7 by sheriffbot@chromium.org, Aug 16

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: WontFix (was: Unconfirmed)
Done, thanks!

Sign in to add a comment