summaryrefslogtreecommitdiff
path: root/content/llcache.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-12-08 22:44:19 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-12-08 22:44:19 +0000
commitc22038bed87c471e9eab71ef189c9013cf227294 (patch)
tree0f9cbeab9fc1f665c2ad0295171d85ca4d25b760 /content/llcache.c
parent4e4cf305cb856d772b5a85ac7bca2284e4ee0677 (diff)
downloadnetsurf-c22038bed87c471e9eab71ef189c9013cf227294.tar.gz
netsurf-c22038bed87c471e9eab71ef189c9013cf227294.tar.bz2
Fix bogus cache validation decision
svn path=/trunk/netsurf/; revision=13261
Diffstat (limited to 'content/llcache.c')
-rw-r--r--content/llcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/llcache.c b/content/llcache.c
index 71de3a070..503fea40c 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -1872,7 +1872,7 @@ void llcache_fetch_callback(const fetch_msg *msg, void *p)
*/
long http_code = fetch_http_code(object->fetch.fetch);
- if ((http_code != 200 && http_code != 203) &&
+ if ((http_code != 200 && http_code != 203) ||
(object->has_query &&
(object->cache.max_age == INVALID_AGE &&
object->cache.expires == 0))) {