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
First (non-cached) request is fine, but the subsequent requests (cached) were throwing ERR_HTTP2_PROTOCOL_ERROR from within the browser (not curl/postman). I found that a content-length header was being added in the cached responses, which caused the error.
I managed to resolve this by adding
headerBlacklist: ['content-length'],
to apicache options not to meddle with it, but apicache itself should respect restify and its content encoding (chunked).
The text was updated successfully, but these errors were encountered:
First (non-cached) request is fine, but the subsequent requests (cached) were throwing
ERR_HTTP2_PROTOCOL_ERROR
from within the browser (not curl/postman). I found that acontent-length
header was being added in the cached responses, which caused the error.I managed to resolve this by adding
to apicache options not to meddle with it, but apicache itself should respect restify and its content encoding (chunked).
The text was updated successfully, but these errors were encountered: