From c06d8b07fe675d3ffefda196956b2407171bc921 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 26 Aug 2009 16:21:29 +0200 Subject: favicon fix --- module/web/WebServer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'module/web/WebServer.py') diff --git a/module/web/WebServer.py b/module/web/WebServer.py index 0627132c8..584ed564c 100644 --- a/module/web/WebServer.py +++ b/module/web/WebServer.py @@ -218,7 +218,12 @@ def pause(): @route('/favicon.ico') def favicon(): - redirect('/static/favicon.ico') + + if request.HEADER("HTTP_IF_MODIFIED_SINCE") == TIME: abort(304, "Not Modified") + + response.header['Last-Modified'] = TIME + + send_file('favicon.ico', root=(PATH + 'static/')) @route('static/:section/:filename') def static_folder(section, filename): -- cgit v1.2.3