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'd like to be able to alter caching mode depending on a response I get. Default implementation is already there, which uses HTTP headers to decide on that
E.g. I use a cache to hit an API endpoint and I'd like to handle errors properly (e.g. request limit), but force to cache for example 2xx responses, even http headers tell "no cache" to clear them later manually.
The text was updated successfully, but these errors were encountered:
I think this should be doable. When I get in to make the other updates this weekend (hopefully) I will play around with including the body as an argument.
I'd like to be able to alter caching mode depending on a response I get. Default implementation is already there, which uses HTTP headers to decide on that
E.g. I use a cache to hit an API endpoint and I'd like to handle errors properly (e.g. request limit), but force to cache for example 2xx responses, even http headers tell "no cache" to clear them later manually.
The text was updated successfully, but these errors were encountered: