Add header based on fastcgi response

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 [email protected] skype: szepe.viktor
Budapest, XX. kerület

Szépe Viktor

+36-20-4242498 [email protected] skype: szepe.viktor
Budapest, XX. kerület

Could anyone comment on this?

Idézem/Quoting Szépe Viktor [email protected]:

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 [email protected] skype: szepe.viktor
Budapest, XX. kerület

On Tue, Jun 2, 2015 at 5:04 PM Szépe Viktor [email protected] wrote:

Could anyone comment on this?

Idézem/Quoting Szépe Viktor [email protected]:

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 [email protected] skype: szepe.viktor
Budapest, XX. kerület


nginx mailing list
[email protected]
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.

Hello!

On Wed, Jun 03, 2015 at 03:11:11PM +0200, Szépe Viktor wrote:

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.

As long as you use fastcgi, you are using upstream module, as
fastcgi module uses upstream module internally (much like proxy,
uwsgi, scgi and memcached).


Maxim D.
http://nginx.org/

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 [email protected]:

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 [email protected] skype: szepe.viktor
Budapest, XX. kerület

Thank you.
Now I am proved to be a sub-rookie.

Idézem/Quoting Maxim D. [email protected]:

[email protected]
nginx Info Page

Szépe Viktor

+36-20-4242498 [email protected] skype: szepe.viktor
Budapest, XX. kerület