Score:0

Is there any way to persist a response header in Nginx Plus for subsequent request lookups?

in flag

In Nginx Plus acting as a reverse proxy I would like to be able to store the key:value represented by a response header in something like a map. As far as I can see, ngx_http_map_module can't be changed at runtime so I think that's ruled out. What similar storage could I consider?

br flag
https://nginx.org/en/docs/http/ngx_http_keyval_module.html#keyval
Adrian avatar
in flag
Thanks, but it looks like 'keyval' only works in the http context whereas I would need to set the key in the location context based on a request header with the value based on a response header.
Adrian avatar
in flag
@alexey-ten I've been looking into the keval module you suggested (I think the http context wouldn't be a problem), and it seems that you have to use the API to set values. Do you know if it's possible somehow to set them without using the API?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.