# client side caching problems

**URL:** <https://discuss.rubyonrails.org/t/client-side-caching-problems/43544>\
**Category:** rubyonrails-talk\
**Created:** [June 17, 2009, 3:14pm UTC](https://discuss.rubyonrails.org/t/client-side-caching-problems/43544 "2009-06-17T15:14:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jean-francois\_ferrie](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@jean-francois\_ferrie](https://discuss.rubyonrails.org/u/jean-francois_ferrie)\
**Post date:** [June 17, 2009, 3:14pm UTC](https://discuss.rubyonrails.org/t/client-side-caching-problems/43544/1 "2009-06-17T15:14:46Z")

</div>

Hi guys,

Here is the action I request:

def index &nbsp;&nbsp;&nbsp;&nbsp;@producteurs=Producteur.find(:all) &nbsp;&nbsp;&nbsp;&nbsp;last=Producteur.maximum("updated\_at").utc &nbsp;&nbsp;&nbsp;&nbsp;if stale?(:last\_modified=\>last) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ip=request.remote\_ip &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@centre=centrage(ip) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;respond\_to do |format| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;format.html &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end &nbsp;&nbsp;&nbsp;&nbsp;end &nbsp;&nbsp;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.
