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

Unified Diff: net/http/http_cache_transaction.cc

Issue 10829114: Http cache: Always revalidate PUT and DELETE requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « no previous file | net/http/http_cache_unittest.cc » ('j') | net/http/http_cache_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_transaction.cc
===================================================================
--- net/http/http_cache_transaction.cc (revision 149069)
+++ net/http/http_cache_transaction.cc (working copy)
@@ -1770,6 +1770,9 @@
if (effective_load_flags_ & LOAD_VALIDATE_CACHE)
return true;
+ if (request_->method == "PUT" || request_->method == "DELETE")
+ return true;
+
if (response_.headers->RequiresValidation(
response_.request_time, response_.response_time, Time::Now()))
return true;
« no previous file with comments | « no previous file | net/http/http_cache_unittest.cc » ('j') | net/http/http_cache_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698