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

Unified Diff: net/http/infinite_cache.cc

Issue 10957045: Http Cache: Small adjustment to the logic that determines the reuse status of an entry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/infinite_cache.cc
===================================================================
--- net/http/infinite_cache.cc (revision 157853)
+++ net/http/infinite_cache.cc (working copy)
@@ -869,19 +869,19 @@
};
int reason = REUSE_OK;
- if (old.flags & NO_CACHE)
- reason = REUSE_NO_CACHE;
+ Time expiration = IntToTime(old.expiration);
+ if (expiration < Time::Now())
+ reason = REUSE_EXPIRED;
if (old.flags & EXPIRED)
reason = REUSE_ALWAYS_EXPIRED;
+ if (old.flags & NO_CACHE)
+ reason = REUSE_NO_CACHE;
+
if (old.flags & TRUNCATED)
reason = REUSE_TRUNCATED;
- Time expiration = IntToTime(old.expiration);
- if (expiration < Time::Now())
- reason = REUSE_EXPIRED;
-
if (old.vary_hash != current.vary_hash)
reason = REUSE_VARY;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698