RFC 2616 allows multiple ETag values in a single header.
These should be specified as Comma separated values.
Say, there is a location block with a proxy_pass to content beyond our control (e.g shared webhosting content) and I wish to add an Etag value to the headers of these.
#... other options including lua
However if an ETag is supplied in the headers of the proxy response then append a new ETag value to the header, the ETag header returned to the client is now -
Etag: "BACKEND_ETAG", "LUA_ETAG"
Of course, this would need to be reversed before sending to the proxy backend. This should be easy enough.
Looking at the API available I don't see how this could be done, am I missing anything?
If that is not possibly, then manually overriding it is the next best option (its not ideal but a shared dictionary can be used to map the values back)
Thanks in advance.