Chromium Code Reviews| 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 7989e4075e9232c8b875e7a2932a71b645731d05..f65cbdef1a1c7b792238964cba956ebfc1232456 100644 |
| --- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp |
| +++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp |
| @@ -544,11 +544,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) |
|
kinuko
2016/05/12 08:45:05
Hmm, it looks what we're changing here and the tes
Takashi Toyoshima
2016/05/13 05:27:13
I conformed that this code path is used for the im
|
| - revalidatingRequest.setHTTPHeaderField(HTTPNames::Cache_Control, "max-age=0"); |
| - } |
| if (!lastModified.isEmpty()) |
| revalidatingRequest.setHTTPHeaderField(HTTPNames::If_Modified_Since, lastModified); |
| if (!eTag.isEmpty()) |