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

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp

Issue 1913803002: not for review, but for running tests with an error code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « content/child/web_url_request_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
index 3948e207db0502630466315551d47a537432a672..6130a7c4727fee474203ccd82915603fb96180ae 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
@@ -547,11 +547,6 @@ void ResourceFetcher::initializeRevalidation(const FetchRequest& request, Resour
const AtomicString& lastModified = resource->response().httpHeaderField(HTTPNames::Last_Modified);
const AtomicString& eTag = resource->response().httpHeaderField(HTTPNames::ETag);
- if (!lastModified.isEmpty() || !eTag.isEmpty()) {
- ASSERT(context().getCachePolicy() != CachePolicyReload);
- if (context().getCachePolicy() == CachePolicyRevalidate)
- revalidatingRequest.setHTTPHeaderField(HTTPNames::Cache_Control, "max-age=0");
- }
if (!lastModified.isEmpty())
revalidatingRequest.setHTTPHeaderField(HTTPNames::If_Modified_Since, lastModified);
if (!eTag.isEmpty())
« no previous file with comments | « content/child/web_url_request_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698