Rails and expriation

15 views
Skip to first unread message

Ben

unread,
Oct 15, 2009, 3:10:30 AM10/15/09
to rack-cache
Hi,

I am using Rails 2.3.4 and have got Rack Cache working by setting the
expires time. The problem I have is when I try to add validation.

in my controller

fresh_when :last_modified => last_modified, :public => true

last modified is a timestamp converted to utc

After the expires time I get a Rails double render error.

Rack Cache seems to set the cache as stale and invalid.
Does any one know what's causing it and how to get round it?
Reply all
Reply to author
Forward
0 new messages