Http cache: Allow caching of byte ranges without strong validators.
commit439a05cd87fe1f880b896bd7b154454299355899
authorrvargas <rvargas@chromium.org>
Sat, 30 Aug 2014 01:43:56 +0000 (29 18:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 30 Aug 2014 01:47:12 +0000 (30 01:47 +0000)
tree60ed492cee9eab673307a6f310e4130238bf4e5e
parentd196b8141a86f9463f4207ae1fec533aaa090588
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

Review URL: https://codereview.chromium.org/509783002

Cr-Commit-Position: refs/heads/master@{#292751}
net/http/http_cache_transaction.cc
net/http/http_cache_unittest.cc
net/http/partial_data.cc