Index: net/http/http_cache_transaction.cc |
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc |
index 15ad924df8f846599166ad663f6c01d3b3dbe94c..178fc180db5ac605adf647b608a8e270d98ce4b0 100644 |
--- a/net/http/http_cache_transaction.cc |
+++ b/net/http/http_cache_transaction.cc |
@@ -449,6 +449,9 @@ void HttpCache::Transaction::StopCaching() { |
if (cache_.get() && entry_ && (mode_ & WRITE) && network_trans_.get() && |
!is_sparse_ && !range_requested_) { |
mode_ = NONE; |
+ // We need to deactivate the cache entry. |
+ // Otherwise subsequent requests for this resource will fail. |
+ cache_->DoomEntry(cache_key_, NULL); |
} |
} |