Add header based on fastcgi response

ryd994 ryd994 at
Wed Jun 3 02:39:06 UTC 2015

On Tue, Jun 2, 2015 at 5:04 PM Szépe Viktor <viktor at> wrote:

Could anyone comment on this?

Idézem/Quoting Szépe Viktor <viktor at>:

> Good morning!
> I'd like to add a X-Fastcgi-Cache header when there is a fastcgi
> cache hit, when the response is stored to or retrieved from the cache.
> add_header X-Fastcgi-Cache 600;
> Could you help me?
> Thank you.

Szépe Viktor
+36-20-4242498 sms at skype: szepe.viktor
Budapest, XX. kerület

nginx mailing list
nginx at
listinfo/nginx <>

Does $upstream_cache_status does the work?

Disclaimer: I'm a newbie. Please correct me if I'm wrong.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list