diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-02-27 18:48:35 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-02-27 18:48:35 +0000 |
commit | 3a79bcb3da85856cdc5b07b2b2fc18103c3c3567 (patch) | |
tree | f7ca83c3e8d16d7e5fdda080b75ec8adb0546350 | |
parent | 89793c21712fe11a1c52452911f12ac38e275d28 (diff) | |
download | netsurf-3a79bcb3da85856cdc5b07b2b2fc18103c3c3567.tar.gz netsurf-3a79bcb3da85856cdc5b07b2b2fc18103c3c3567.tar.bz2 |
Explicitly mark error pages as non-fresh so they'll get purged from the cache ASAP.
svn path=/trunk/netsurf/; revision=3871
-rw-r--r-- | content/fetchcache.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |