-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hishel stores no-store data #226
Comments
Actually it may not store as such, but maybe hishel is simply not preserving non-cached streaming responses and collects in memory the entire data set, even if it will not be cached. The memory steadily grows during the request, then goes back to a low level after the request is finished. |
Hi! I think we do not store responses if the cache was disabled using Here is where we do it in hishel: hishel/hishel/_async/_transports.py Lines 205 to 213 in 5da6012
Simply, moving these two lines into the |
Hishel used with
AsyncInMemoryStorage()
accumulates data in memory, even though the request was done usingextensions={'cache_disabled': True}
and the response hadCache-Control: no-store
set. This leads to an out-of-memory situation in my case as the data is quite large.The text was updated successfully, but these errors were encountered: