# Proxy\_cache\_bypass and proxy\_no\_cache

**URL:** <https://www.ruby-forum.com/t/proxy-cache-bypass-and-proxy-no-cache/226491>\
**Category:** NGINX\
**Created:** [December 10, 2012, 8:20am UTC](https://www.ruby-forum.com/t/proxy-cache-bypass-and-proxy-no-cache/226491 "2012-12-10T08:20:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amodpandey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9c0ed/32.png) [@amodpandey](https://www.ruby-forum.com/u/amodpandey)\
**Post date:** [December 10, 2012, 8:20am UTC](https://www.ruby-forum.com/t/proxy-cache-bypass-and-proxy-no-cache/226491/1 "2012-12-10T08:20:38Z")

</div>

I want to proxy\_cache responses only with a specific cookie in request.

I thought to use

proxy\_cache\_bypass ! $cookie\_cache;  
proxy\_no\_cache ! $cookie\_cache;

That ( ! ) does not work.

One more question, why we need to have proxy\_cache\_bypass and  
proxy\_no\_cache  
else  
nginx: [warn] “proxy\_no\_cache” functionality has been changed in 0.8.46,  
now  
it should be used together with “proxy\_cache\_bypass”

Help Please!

Regards  
Amod

Posted at Nginx Forum:

> **[proxy\_cache\_bypass and proxy\_no\_cache](https://forum.nginx.org/read.php?2,233778,233778#msg-233778)**
>
> I want to proxy\_cache responses only with a specific cookie in request. I thought to use proxy\_cache\_bypass ! $cookie\_cache; proxy\_no\_cache ! $cookie\_cache; That ( ! ) does not work. One more question, why we need to h
