Welcome! Log In Create A New Profile

Advanced

Add Header to cached response?

Roger Fischer
September 10, 2018 02:08PM
Hello,

is there a way to add a header to the cached response?

I have used ngx_http_headers_module’s add_header directive, which adds the header to the response at the time the response is generated.

What I would like to do is to add a response header at the time when the upstream request is made (reflecting the state of the caching request, not the used-the-cache request).

Thanks…

Roger

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

Add Header to cached response?

Roger Fischer September 10, 2018 02:08PM

Re: Add Header to cached response?

Maxim Dounin September 10, 2018 09:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready