Closed jowypej closed 6 years ago
etag leakage
Odd that you'd dislike this, because that etag indeed uniquely identifies that exact response (including 404 responses, because why not). You should be able to use proxy_hide_header
for this:
location / {
proxy_pass http://localhost:10002;
proxy_set_header Host $host;
proxy_pass_request_headers on;
proxy_hide_header Etag;
proxy_hide_header Cache-Control;
}
The idea with that by the way, is you can use something like varnish to add 304 not modified support to a pb deployment, which is useful if you're deploying a static website with multiple/large resources on pb.
Maybe you can help me with this etag leakage. It seems the pb server is returning its own headers in addition to the ones I've specified (notice there's two Cache-Control headers). What am I doing wrong here? How do I keep the server from returning the etags and unwanted cache-control headers?
It displays different etags aswell with 404's: