Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Load balancer + restify bug resolution #244

Open
xdzurman opened this issue Feb 23, 2022 · 0 comments
Open

Load balancer + restify bug resolution #244

xdzurman opened this issue Feb 23, 2022 · 0 comments

Comments

@xdzurman
Copy link

xdzurman commented Feb 23, 2022

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).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant