# Client side caching problems

**URL:** <https://www.ruby-forum.com/t/client-side-caching-problems/170441>\
**Category:** Rails\
**Created:** [June 17, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/client-side-caching-problems/170441 "2009-06-17T17:15:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manchoman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/91b2a8/32.png) [@manchoman](https://www.ruby-forum.com/u/manchoman)\
**Post date:** [June 17, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/client-side-caching-problems/170441/1 "2009-06-17T17:15:35Z")

</div>

Hi guys,

Here is the action I request:

def index  
@producteurs=Producteur.find(:all)  
last=Producteur.maximum(“updated\_at”).utc  
if stale?(:last\_modified=\>last)  
ip=request.remote\_ip  
@centre=centrage(ip)  
respond\_to do |format|  
format.html  
end  
end  
end

for the first request I get a “200 ok” response in firefox  
for the second request I get a “304 Not Modified” response in firefox,  
GREAT  
but for the third request I get a “200 ok” response. ☹ Nothing  
has change in the models.

Any idea why the third request is not a 304?  
thanks jef.
