Load balancer + restify bug resolution
xdzurman opened this issue · comments
Kamil Džurman commented
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).