From 24936846043a36588a890e4d25dfd12f5be9cd7d Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sun, 10 Apr 2011 11:03:20 +0200 Subject: [PATCH] Also send Cache-Control header to prevent caching. --- linkcheck/updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkcheck/updater.py b/linkcheck/updater.py index 01305c2e..0614cb77 100644 --- a/linkcheck/updater.py +++ b/linkcheck/updater.py @@ -57,7 +57,7 @@ def check_update (): def get_online_version (): """Download update info and parse it.""" # prevent getting a cached answer - headers = {'Pragma': 'no-cache'} + headers = {'Pragma': 'no-cache', 'Cache-Control': 'no-cache'} info, content = get_content(UPDATE_URL, addheaders=headers) if info is None: None, _('could not download update information')