mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-26 18:50:32 +00:00
Also send Cache-Control header to prevent caching.
This commit is contained in:
parent
d915b17498
commit
2493684604
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue