Setting caching headers for proxied content?

As this is my first post to the list… great thanks to the author of
nginx and all people who helped to develop this excellent piece of
software. Fantastic example of well written and very useful
software. Thank you.

Now to the subject. Maybe I missed some part of the docs, but … is
it possible to manage caching headers for the (reversy)-proxied
content from nginx configuration?

Hello!

On Wed, 31 Oct 2007, Marcin K. wrote:

As this is my first post to the list… great thanks to the author of
nginx and all people who helped to develop this excellent piece of
software. Fantastic example of well written and very useful
software. Thank you.

Now to the subject. Maybe I missed some part of the docs, but … is
it possible to manage caching headers for the (reversy)-proxied
content from nginx configuration?

Try using ngx_http_headers_module, see English docs here:

http://wiki.codemongers.com/NginxHttpHeadersModule

It doesn’t care whether response was proxied from backend or not.

Maxim D.