# Re: proxy\_cache\_bypass and proxy\_no\_cache

**URL:** <https://www.ruby-forum.com/t/re-proxy-cache-bypass-and-proxy-no-cache/225059>\
**Category:** NGINX\
**Created:** [December 10, 2012, 9:55am UTC](https://www.ruby-forum.com/t/re-proxy-cache-bypass-and-proxy-no-cache/225059 "2012-12-10T09:55:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [December 10, 2012, 9:55am UTC](https://www.ruby-forum.com/t/re-proxy-cache-bypass-and-proxy-no-cache/225059/1 "2012-12-10T09:55:22Z")

</div>

Another option is to use an if.

set $dont\_cache 0;

if ($cookie\_no\_cache) {  
set $dont\_cache 1;  
}

–appa

amodpandey [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) a écrit :
