Commit d97c21a2 authored by cbentzel's avatar cbentzel Committed by Commit bot

Async revalidation only applies to GET requests

BUG=348877

Review URL: https://codereview.chromium.org/1406323003

Cr-Commit-Position: refs/heads/master@{#361318}
parent 884d8f3e
...@@ -2346,8 +2346,8 @@ ValidationType HttpCache::Transaction::RequiresValidation() { ...@@ -2346,8 +2346,8 @@ ValidationType HttpCache::Transaction::RequiresValidation() {
cache_->clock_->Now()); cache_->clock_->Now());
if (validation_required_by_headers == VALIDATION_ASYNCHRONOUS) { if (validation_required_by_headers == VALIDATION_ASYNCHRONOUS) {
// Asynchronous revalidation is only supported for GET and HEAD methods. // Asynchronous revalidation is only supported for GET methods.
if (request_->method != "GET" && request_->method != "HEAD") if (request_->method != "GET")
return VALIDATION_SYNCHRONOUS; return VALIDATION_SYNCHRONOUS;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment