# Proxy\_cache recursive update

**URL:** <https://www.ruby-forum.com/t/proxy-cache-recursive-update/217081>\
**Category:** NGINX\
**Created:** [February 21, 2012, 9:14am UTC](https://www.ruby-forum.com/t/proxy-cache-recursive-update/217081 "2012-02-21T09:14:43Z")\
**Posts on this page:** 4\
**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:** [February 21, 2012, 9:14am UTC](https://www.ruby-forum.com/t/proxy-cache-recursive-update/217081/1 "2012-02-21T09:14:43Z")

</div>

Hi guys,

I know that nginx proxy\_cache is based on url (page). The cache file is  
something like this :  
./c/a00b4dce27af1b06075339f598a4050c  
and it includes all the content of that page : text, image, banner, …

Suppose that I have a site map (on real server) like this :  
/page1.html  
/page2.html  
/page3.html  
/banner.jpeg

all the three pages are include the banner.jpeg by tag \<img …

The problem is, when I update the banner.jpeg with a new one (same file  
name) on the real server, and I’ve updated the cached file banner.jpeg  
on cached server (remove that cache file), but when I surf the  
page1.html on cache server, it’s still include the old banner.jpeg ☹

Is there any way to fix this ? without delete all related cached files  
?

I mean recursive update proxy\_cache.

Thank you very much.

Posted at Nginx Forum:

> **[Proxy\_cache recursive update.](https://forum.nginx.org/read.php?2,222769,222769#msg-222769)**
>
> Hi guys, I know that nginx proxy\_cache is based on url (page). The cache file is something like this : ./c/a00b4dce27af1b06075339f598a4050c and it includes all the content of that page : text, image, banner, ... Suppose that I have a site map (on...

---

<div class="post-metadata">

**Author:** ![atrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@atrus](https://www.ruby-forum.com/u/atrus)\
**Post date:** [February 21, 2012, 3:14pm UTC](https://www.ruby-forum.com/t/proxy-cache-recursive-update/217081/2 "2012-02-21T15:14:07Z")

</div>

Guy !

Is there any one have fix this issue ?!!!

Thanks so much.

Posted at Nginx Forum:

> **[Re: Proxy\_cache recursive update.](https://forum.nginx.org/read.php?2,222769,222784#msg-222784)**
>
> Hi guys, I know that nginx proxy\_cache is based on url (page). The cache file is something like this : ./c/a00b4dce27af1b06075339f598a4050c and it includes all the content of that page : text, image, banner, ... Suppose that I have a site map (on...

---

<div class="post-metadata">

**Author:** ![atrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@atrus](https://www.ruby-forum.com/u/atrus)\
**Post date:** [February 21, 2012, 4:31pm UTC](https://www.ruby-forum.com/t/proxy-cache-recursive-update/217081/3 "2012-02-21T16:31:10Z")

</div>

On Tuesday 21 February 2012 12:14:26 atrus wrote:

> /page3.html  
> /banner.jpeg
> 
> all the three pages are include the banner.jpeg by tag \<img …
> 
> The problem is, when I update the banner.jpeg with a new one (same file  
> name) on the real server, and I’ve updated the cached file banner.jpeg  
> on cached server (remove that cache file), but when I surf the  
> page1.html on cache server, it’s still include the old banner.jpeg ☹

Do you mean, browser still include the old banner.jpeg? So, that’s  
browser cache,  
not nginx.

wbr, Valentin V. Bartenev

---

<div class="post-metadata">

**Author:** ![atrus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@atrus](https://www.ruby-forum.com/u/atrus)\
**Post date:** [February 22, 2012, 4:52am UTC](https://www.ruby-forum.com/t/proxy-cache-recursive-update/217081/4 "2012-02-22T04:52:34Z")

</div>

Thanks Bartenev.

I have clear cache of the browser but it still using the old banner !

Atrus.

Posted at Nginx Forum:

> **[Re: Proxy\_cache recursive update.](https://forum.nginx.org/read.php?2,222769,222822#msg-222822)**
>
> Hi guys, I know that nginx proxy\_cache is based on url (page). The cache file is something like this : ./c/a00b4dce27af1b06075339f598a4050c and it includes all the content of that page : text, image, banner, ... Suppose that I have a site map (on...
