# Cache HIT’s not happening

**URL:** <https://www.ruby-forum.com/t/cache-hit-s-not-happening/213418>\
**Category:** NGINX\
**Created:** [November 1, 2011, 4:45pm UTC](https://www.ruby-forum.com/t/cache-hit-s-not-happening/213418 "2011-11-01T16:45:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [November 1, 2011, 4:45pm UTC](https://www.ruby-forum.com/t/cache-hit-s-not-happening/213418/1 "2011-11-01T16:45:16Z")

</div>

Hi all,

Can someone please answer this question on serverfault(Its difficult to  
retain code formatting and images in the group mail, hence the post in  
[serverfault.com](http://serverfault.com)).

> <https://serverfault.com/questions/326545/nginx-cache-hit-s-not-happening>

Thanks,  
Quintin

---

<div class="post-metadata">

**Author:** ![Quintin\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/13edae/32.png) [@Quintin\_P](https://www.ruby-forum.com/u/Quintin_P)\
**Post date:** [November 1, 2011, 5:23pm UTC](https://www.ruby-forum.com/t/cache-hit-s-not-happening/213418/2 "2011-11-01T17:23:43Z")

</div>

Hello!

On Tue, Nov 01, 2011 at 09:14:29PM +0530, Quintin P. wrote:

> Hi all,
> 
> Can someone please answer this question on serverfault(Its difficult to  
> retain code formatting and images in the group mail, hence the post in  
> [serverfault.com](http://serverfault.com)).
> 
> [http://serverfault.com/questions/326545/nginx-cache-hits-not-happening](http://serverfault.com/questions/326545/nginx-cache-hits-not-happening)

Answer from kolbyjack suggesting to add

```
proxy_ignore_headers Set-Cookie;

```

is likely correct as long as your backend actually sends  
Set-Cookie header.

If it doesn’t fix your problem, please provide full config and  
debug log. See here [GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](http://wiki.nginx.org/Debugging) for more  
details.

Maxim D.
