From 3a79bcb3da85856cdc5b07b2b2fc18103c3c3567 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 27 Feb 2008 18:48:35 +0000 Subject: Explicitly mark error pages as non-fresh so they'll get purged from the cache ASAP. svn path=/trunk/netsurf/; revision=3871 --- content/fetchcache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/fetchcache.c b/content/fetchcache.c index 4fdbb93ca..133659557 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -605,6 +605,10 @@ void fetchcache_error_page(struct content *c, const char *error) if (!content_process_data(c, error_page, length)) return; content_convert(c, c->width, c->height); + + /* Mark content as non-fresh, so it'll get cleaned from the + * cache at the earliest opportunity */ + c->fresh = false; } -- cgit v1.2.3