Add header based on fastcgi response

ryd994 ryd994 at 163.com
Wed Jun 3 02:39:06 UTC 2015


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

Could anyone comment on this?


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

> 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 szepe.net skype: szepe.viktor
Budapest, XX. kerület




_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/
<http://mailman.nginx.org/mailman/listinfo/nginx>
listinfo/nginx <http://mailman.nginx.org/mailman/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: <http://mailman.nginx.org/pipermail/nginx/attachments/20150603/d787f21a/attachment.html>


More information about the nginx mailing list