Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

sent_http_HEADER Volatile under Nginx 1.2.4 (7 replies)

$
0
0
I’m in the process of making some amends to an environment, where my upstream servers are sending a custom header (X-No-Cache), which I need to detect and alter caching rules within the configuration.

The custom header is visible within the output, and I can re-output it as another header through configuration (i.e. add_header X-Sent-No-Cache $sent_http_x_no_cache; ).

However, as soon as I perform any type of testing of this custom header, it disappears.

For example, if I was to perform a map on the custom header, try to set an Nginx variable to the value of the header, or test within an IF statement, any future call to this header is no longer possible. Additionally any setting or testing of the header fails.

Unfortunately I have little control of the upstream, so cannot use an alternative method (such as proper Cache-Control headers).

Has anyone experienced similar behaviour, or have any pearls of wisdom?

Thanks in advance,

Paul

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>