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
ETags behind gateway that compresses responses #3956
I encountered an issue with the ETag validation for
When a Hapi server sits behind an nginx reverse proxy, with compression enabled, responses that contain an
While this is probably an nginx issue, I put it here, as Hapi might want to workaround this behaviour. This can be done by matching weak etags against non-weak etags, and taking care to return the weak
Alternatively, I guess api could add a "weak" option on routes, to force a weak response, making the check work.
See https://stackoverflow.com/a/55525109/248062 for some more background.