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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp

Issue 2767853003: Remove stale-while-revalidate from blink (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
index f7fcd772965cc5c12ac3a9c865d8872eae65906a..596adba64d86b8a6775002e2e350284ecd05409c 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
@@ -699,16 +699,6 @@ void ResourceFetcher::initializeRevalidation(
if (!eTag.isEmpty())
revalidatingRequest.setHTTPHeaderField(HTTPNames::If_None_Match, eTag);
- double stalenessLifetime = resource->stalenessLifetime();
- if (std::isfinite(stalenessLifetime) && stalenessLifetime > 0) {
- revalidatingRequest.setHTTPHeaderField(
- HTTPNames::Resource_Freshness,
- AtomicString(String::format(
- "max-age=%.0lf,stale-while-revalidate=%.0lf,age=%.0lf",
- resource->freshnessLifetime(), stalenessLifetime,
- resource->currentAge())));
- }
-
resource->setRevalidatingRequest(revalidatingRequest);
}

Powered by Google App Engine
This is Rietveld 408576698