Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Issue 59043006: Avoid reusing XMLHttpRequest resources during document load. (Closed)

Created:
7 years, 1 month ago by sof
Modified:
7 years, 1 month ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Avoid reusing XMLHttpRequest resources during document load. The determineRevalidationPolicy() predicate decides how an existing cached resource can be (re)utilized upon another fetch to the same resource. It will allow reuse of already loaded (and loading) resources while a document is being loaded. Such resource reuse isn't safe to do for raw resources requested through XHR, as there's too much state and header information that an XHR request can be furnished with. Hence, we exempt raw resources and delegate to the standard cache control policy to decide on reuse. Like it would do once the document has loaded. R=japhet@chromium.org BUG=314433 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161846

Patch Set 1 #

Total comments: 1

Patch Set 2 : Update expected output for fast/workers/ TC #

Patch Set 3 : Move check into RawResource::canReuse() #

Patch Set 4 : Exempt raw resources from initial load reuse #

Patch Set 5 : Reduce scope of test to lessen timeout potential #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -2 lines) Patch
A LayoutTests/http/tests/xmlhttprequest/resources/echo-random.php View 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/sync-repeated-and-caching.html View 1 2 3 4 1 chunk +70 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/sync-repeated-and-caching-expected.txt View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
sof
I'd appreciate it if you could have a look.
7 years, 1 month ago (2013-11-05 19:27:22 UTC) #1
Nate Chapin
https://codereview.chromium.org/59043006/diff/1/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/59043006/diff/1/Source/core/fetch/ResourceFetcher.cpp#newcode864 Source/core/fetch/ResourceFetcher.cpp:864: if (type == Resource::Raw) We probably want a narrower ...
7 years, 1 month ago (2013-11-05 19:39:24 UTC) #2
sof
On 2013/11/05 19:39:24, Nate Chapin wrote: > https://codereview.chromium.org/59043006/diff/1/Source/core/fetch/ResourceFetcher.cpp > File Source/core/fetch/ResourceFetcher.cpp (right): > > https://codereview.chromium.org/59043006/diff/1/Source/core/fetch/ResourceFetcher.cpp#newcode864 ...
7 years, 1 month ago (2013-11-05 21:43:47 UTC) #3
Nate Chapin
On 2013/11/05 21:43:47, sof wrote: > On 2013/11/05 19:39:24, Nate Chapin wrote: > > > ...
7 years, 1 month ago (2013-11-05 21:47:13 UTC) #4
sof
On 2013/11/05 21:47:13, Nate Chapin wrote: > On 2013/11/05 21:43:47, sof wrote: > > On ...
7 years, 1 month ago (2013-11-06 07:22:21 UTC) #5
Nate Chapin
On 2013/11/06 07:22:21, sof wrote: > On 2013/11/05 21:47:13, Nate Chapin wrote: > > On ...
7 years, 1 month ago (2013-11-07 17:28:32 UTC) #6
sof
Thanks for looking into this some more, really appreciate it :) On 2013/11/07 17:28:32, Nate ...
7 years, 1 month ago (2013-11-07 19:14:40 UTC) #7
Nate Chapin
On 2013/11/07 19:14:40, sof wrote: > Thanks for looking into this some more, really appreciate ...
7 years, 1 month ago (2013-11-07 19:27:29 UTC) #8
sof
On 2013/11/07 19:27:29, Nate Chapin wrote: > On 2013/11/07 19:14:40, sof wrote: ... > > ...
7 years, 1 month ago (2013-11-08 14:54:36 UTC) #9
sof
The updated patchset simply syncs with what we've been discussing here, at least that's the ...
7 years, 1 month ago (2013-11-08 18:50:07 UTC) #10
Nate Chapin
On 2013/11/08 14:54:36, sof wrote: > On 2013/11/07 19:27:29, Nate Chapin wrote: > > On ...
7 years, 1 month ago (2013-11-08 21:47:45 UTC) #11
sof
On 2013/11/08 21:47:45, Nate Chapin wrote: > On 2013/11/08 14:54:36, sof wrote: > > On ...
7 years, 1 month ago (2013-11-08 22:27:57 UTC) #12
sof
On 2013/11/08 22:27:57, sof wrote: > On 2013/11/08 21:47:45, Nate Chapin wrote: > > On ...
7 years, 1 month ago (2013-11-11 21:32:33 UTC) #13
Nate Chapin
On 2013/11/11 21:32:33, sof wrote: > On 2013/11/08 22:27:57, sof wrote: > > On 2013/11/08 ...
7 years, 1 month ago (2013-11-11 21:39:10 UTC) #14
sof
On 2013/11/11 21:39:10, Nate Chapin wrote: > On 2013/11/11 21:32:33, sof wrote: > > On ...
7 years, 1 month ago (2013-11-11 22:33:22 UTC) #15
Nate Chapin
LGTM Thanks for iterating on this!
7 years, 1 month ago (2013-11-11 22:40:48 UTC) #16
sof
On 2013/11/11 22:40:48, Nate Chapin wrote: > LGTM > > Thanks for iterating on this! ...
7 years, 1 month ago (2013-11-11 22:54:11 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/59043006/240001
7 years, 1 month ago (2013-11-11 22:54:34 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=16799
7 years, 1 month ago (2013-11-12 01:10:34 UTC) #19
sof
Had to reduce the scope of the test to try to avoid running into a ...
7 years, 1 month ago (2013-11-12 14:47:59 UTC) #20
Nate Chapin
On 2013/11/12 14:47:59, sof wrote: > Had to reduce the scope of the test to ...
7 years, 1 month ago (2013-11-12 17:07:18 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/59043006/250005
7 years, 1 month ago (2013-11-12 18:07:02 UTC) #22
commit-bot: I haz the power
Change committed as 161846
7 years, 1 month ago (2013-11-12 19:50:40 UTC) #23
sof
7 years, 1 month ago (2013-11-12 19:58:19 UTC) #24
Message was sent while issue was closed.
On 2013/11/12 17:07:18, Nate Chapin wrote:
> On 2013/11/12 14:47:59, sof wrote:
> > Had to reduce the scope of the test to try to avoid running into a timeout
> > (triggered for a Win builder). Still looking ok?
> > 
> > (Sorry, don't have trybot access to expedite testing.)
> 
> Sorry, I didn't realize that. Still LGTM

Thanks again, japhet.

I don't quite understand what issue the test ran into on that builder; will keep
an eye on its status.

Powered by Google App Engine
This is Rietveld 408576698