You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Postman sends no-cache header by default which is not necessarily set on your browser, that is why the response is cached on your browser and not on the postman. You can remove this header in the settings.
You can also remove this check from the cache decorator and write your own to make it work with your needs:
request.headers.get("Cache-Control") in ("no-store", "no-cache")
Hi all,
My cache system is working on browser but not in postman
@app.get("/", include_in_schema=False) @cache(expire=600) async def app_home(request: Request): return {'Domain : %s' % generate_random(20)}
Do you have an idea ?
The text was updated successfully, but these errors were encountered: