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
I've enabled cache_control=True on my session to respect the remote caching headers, but I also want to use stale_if_error. However when I fetch a remote URL that returns cache-control: no-cache, then it seems the response is not stored in the cache so stale_if_error can't work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've enabled cache_control=True on my session to respect the remote caching headers, but I also want to use stale_if_error. However when I fetch a remote URL that returns cache-control: no-cache, then it seems the response is not stored in the cache so stale_if_error can't work.
Is there any way to make these work together?
Beta Was this translation helpful? Give feedback.
All reactions