Correction gestion du cache
This commit is contained in:
parent
db3367b364
commit
81c72ff197
|
@ -20,6 +20,8 @@ def get_file(url, filename, force_etag: str = ""):
|
|||
if symlink_file.exists():
|
||||
file = symlink_file.resolve()
|
||||
etag = file.name
|
||||
if etag == force_etag:
|
||||
return file
|
||||
|
||||
response = requests.get(url, headers={"If-None-Match": f'"{etag}'}, allow_redirects=True)
|
||||
if response.status_code == 404:
|
||||
|
|
Loading…
Reference in New Issue