O'Reilly logo

NGINX Cookbook by Tim Butler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

One of the easiest ways is to simply add an additional header. To do this, we add the additional directive to our existing proxy configuration within the location block directive:

proxy_set_header X-Cache-Status $upstream_cache_status; 

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required