Add header based on fastcgi response
Szépe Viktor
viktor at szepe.net
Wed Jun 3 13:11:11 UTC 2015
>
>
> Does $upstream_cache_status does the work?
>
> Disclaimer: I'm a newbie. Please correct me if I'm wrong.
Thanks. I don't use the http_upstream module.
It is a basic PHP-FPM setup.
Idézem/Quoting ryd994 <ryd994 at 163.com>:
> 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
More information about the nginx
mailing list