Disabled cache.
Some checks failed
CI / test (3.9) (push) Failing after 17s
CI / test (3.10) (push) Failing after 22s
CI / test (3.12) (push) Failing after 22s
CI / lint (push) Failing after 21s
CI / build (push) Failing after 25s
CI / test (3.8) (push) Failing after 37s
CI / test (3.11) (push) Failing after 41s

This commit is contained in:
retoor 2025-12-08 04:53:13 +01:00
parent d2d66192e4
commit bb66801c09

View File

@ -72,9 +72,9 @@ async def proxy_request(request, method, max_retries=10, retry_delay=2):
status=resp.status,
content_type=resp.content_type
)
if method == 'GET':
api_cache[api_url] = (data, resp.status, resp.content_type)
response.headers['Cache-Control'] = f'public, max-age={API_CACHE_MAX_AGE}'
#if method == 'GET':
#api_cache[api_url] = (data, resp.status, resp.content_type)
#response.headers['Cache-Control'] = f'public, max-age={API_CACHE_MAX_AGE}'
return add_cors_headers(response)
except Exception:
if attempt < max_retries - 1: