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
In one of my project where I get to implement a cache, I store the response body (content) and the policy (via .toObject()) together. When assembling a response from cache, I have access to the body and the header through the policy object, but not the status code. Since it is already stored in the policy, would it be good to also expose it (e.g. directly with a new .statusCode() API, or from evaluateRequest() or revalidatedPolicy())?
The text was updated successfully, but these errors were encountered:
In one of my project where I get to implement a cache, I store the response body (content) and the policy (via
.toObject()
) together. When assembling a response from cache, I have access to the body and the header through the policy object, but not the status code. Since it is already stored in the policy, would it be good to also expose it (e.g. directly with a new.statusCode()
API, or fromevaluateRequest()
orrevalidatedPolicy()
)?The text was updated successfully, but these errors were encountered: