Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Custom "content-encoding" without vary header #3964
I have a case where I need to do my own compression of the content, setting where I set the
Since I always set the
Note, it might not even need to be an option, as unconditionally setting the header for any response with a
The relevant logic:
Another option, that might work better, is for hapi to expose forced content encoding through a response object method. That way I don't need to bother with the encoding myself.
Note that I can't use a route-level option since I need to do this in response to a specific query parameter.
Edit: Such an option could also be used to signal that