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
As it stands, the apicache middleware breaks Express's automatic handling of etags when the client supplies an If-None-Match header. I'm presuming it's something to do with overiding res.end but either way this is a useful feature that can reduce data sent to the client, which is especially useful in bandwidth constrained scenarios like mobile apps. It's a shame to have to chose between reducing traffic to the backend or payloads to the client. Here's a failing test case:
I have as similar problem as well. When an If-None-Match header is supplied with the request, the cache is ignored although the intent is to use the cached content and check the ETAG.
As it stands, the apicache middleware breaks Express's automatic handling of etags when the client supplies an
If-None-Match
header. I'm presuming it's something to do with overidingres.end
but either way this is a useful feature that can reduce data sent to the client, which is especially useful in bandwidth constrained scenarios like mobile apps. It's a shame to have to chose between reducing traffic to the backend or payloads to the client. Here's a failing test case:The text was updated successfully, but these errors were encountered: