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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor.cc

Issue 455623003: stale-while-revalidate experimental implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/predictors/resource_prefetch_predictor.cc
diff --git a/chrome/browser/predictors/resource_prefetch_predictor.cc b/chrome/browser/predictors/resource_prefetch_predictor.cc
index 96339696039078aba5af584c09e55341c9f572d6..8ebc3716cc65291553352d2220491c62edb64fe2 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor.cc
@@ -246,8 +246,8 @@ bool ResourcePrefetchPredictor::IsCacheable(const net::URLRequest* response) {
return false;
base::Time response_time(response_info.response_time);
response_time += base::TimeDelta::FromSeconds(1);
- base::TimeDelta freshness = response_info.headers->GetFreshnessLifetime(
- response_time);
+ base::TimeDelta freshness =
+ response_info.headers->GetFreshnessLifetimes(response_time).fresh;
return freshness > base::TimeDelta();
}

Powered by Google App Engine
This is Rietveld 408576698