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

Issue 509783002: Http cache: Allow caching of byte ranges without strong validators. (Closed)

Created:
6 years, 3 months ago by rvargas (doing something else)
Modified:
6 years, 3 months ago
Reviewers:
davidben
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Http cache: Allow caching of byte ranges without strong validators. In order to fetch a resource using multiple byte range requests, the cache has to make sure that the resource has not changed, and strong validators are needed for that. However, if the cache only has to return data without talking to the server again, strong validators are not required. It used to be the case that the cache will not return content from sparse entries without revalidating tnem with the server first. But that changed a long time ago to allow regular reuse policies, even for sparse/range requests. This CL allows caching of partial responses that don't have strong validators, as they are useful as described above. BUG=407923 Committed: https://crrev.com/439a05cd87fe1f880b896bd7b154454299355899 Cr-Commit-Position: refs/heads/master@{#292751}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -19 lines) Patch
M net/http/http_cache_transaction.cc View 2 chunks +4 lines, -12 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 2 chunks +36 lines, -4 lines 0 comments Download
M net/http/partial_data.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
rvargas (doing something else)
rvargas@chromium.org changed reviewers: + davidben@chromium.org
6 years, 3 months ago (2014-08-27 21:50:19 UTC) #1
rvargas (doing something else)
PTAL
6 years, 3 months ago (2014-08-27 21:50:19 UTC) #2
davidben
Some minor comment suggestions and one question. https://codereview.chromium.org/509783002/diff/20001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (left): https://codereview.chromium.org/509783002/diff/20001/net/http/http_cache_transaction.cc#oldcode1562 net/http/http_cache_transaction.cc:1562: if (handling_206_ ...
6 years, 3 months ago (2014-08-29 18:03:24 UTC) #3
rvargas (doing something else)
Thanks! https://codereview.chromium.org/509783002/diff/20001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (left): https://codereview.chromium.org/509783002/diff/20001/net/http/http_cache_transaction.cc#oldcode1562 net/http/http_cache_transaction.cc:1562: if (handling_206_ && !CanResume(false)) { On 2014/08/29 18:03:23, ...
6 years, 3 months ago (2014-08-29 19:34:27 UTC) #4
davidben
lgtm
6 years, 3 months ago (2014-08-29 19:37:10 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/509783002/40001
6 years, 3 months ago (2014-08-29 23:54:37 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-30 01:09:05 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as ecd598fa5e2202fec341604d02082d525a510c46
6 years, 3 months ago (2014-08-30 01:44:38 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:12:59 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/439a05cd87fe1f880b896bd7b154454299355899
Cr-Commit-Position: refs/heads/master@{#292751}

Powered by Google App Engine
This is Rietveld 408576698