chore: disable caching mechanism across all application layers

This commit is contained in:
retoor 2025-12-08 03:53:13 +00:00
parent 9e5752313e
commit 8ef693d086

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: