chore: disable caching mechanism across all application layers
This commit is contained in:
parent
9e5752313e
commit
8ef693d086
6
proxy.py
6
proxy.py
@ -72,9 +72,9 @@ async def proxy_request(request, method, max_retries=10, retry_delay=2):
|
|||||||
status=resp.status,
|
status=resp.status,
|
||||||
content_type=resp.content_type
|
content_type=resp.content_type
|
||||||
)
|
)
|
||||||
if method == 'GET':
|
#if method == 'GET':
|
||||||
api_cache[api_url] = (data, resp.status, resp.content_type)
|
#api_cache[api_url] = (data, resp.status, resp.content_type)
|
||||||
response.headers['Cache-Control'] = f'public, max-age={API_CACHE_MAX_AGE}'
|
#response.headers['Cache-Control'] = f'public, max-age={API_CACHE_MAX_AGE}'
|
||||||
return add_cors_headers(response)
|
return add_cors_headers(response)
|
||||||
except Exception:
|
except Exception:
|
||||||
if attempt < max_retries - 1:
|
if attempt < max_retries - 1:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user