summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache_transaction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_cache_transaction.cc')
-rw-r--r--net/http/http_cache_transaction.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index c8b2b33..9af0c83 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -1694,6 +1694,9 @@ bool HttpCache::Transaction::ConditionalizeRequest() {
response_.headers->EnumerateHeader(NULL, "last-modified",
&last_modified_value);
+ if (response_.headers->GetHttpVersion() < HttpVersion(1, 1))
+ etag_value.clear();
+
if (etag_value.empty() && last_modified_value.empty())
return false;