Index: net/http/http_cache_transaction.cc |
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc |
index 5441e90f33ffa7d27377bb07dac4a67ab954338c..fa6397db65e1372acc0dc0255c827535c5a8e8e2 100644 |
--- a/net/http/http_cache_transaction.cc |
+++ b/net/http/http_cache_transaction.cc |
@@ -1219,7 +1219,8 @@ int HttpCache::Transaction::DoSuccessfulSendRequest() { |
mode_ = NONE; |
} |
- if (request_->method == "POST" && |
+ if (!(effective_load_flags_ & LOAD_DISABLE_CACHE) && |
davidben
2014/10/23 19:14:43
Should this be mode_ != NONE or mode_ & WRITE or s
rvargas (doing something else)
2014/10/23 19:36:09
There are multiple causes for mode_ to change betw
davidben
2014/10/23 19:45:42
Ohh, I see. This is about invalidating GETs after
rvargas (doing something else)
2014/10/23 20:06:15
Done.
|
+ request_->method == "POST" && |
NonErrorResponse(new_response->headers->response_code())) { |
cache_->DoomMainEntryForUrl(request_->url); |
} |