Forum: Ruby on Rails does expires_in store data in server cache or is it client only?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bfccdb1c41c334fec20e5ede3a7ccfcc?d=identicon&s=25 Andrew Roth (andrewroth)
on 2012-06-09 02:26
(Received via mailing list)

I'm having an issue with expires_in. From the docs
( it
looks like it should only set a header.  However, with a simple test
application I can see it storing data to cache.

class HomeController < ApplicationController
  def index
    expires_in 5.minutes, :public => true

Results in a file
like tmp/cache/AE9/880/f812f291251bb669867bae9c9d030ab7b4c0bd20 which
contains the page body.  I can modify that file and see it being sent
to the client.

I'm surprised to see it storing data on the server - I thought it would
just send a header.  I also see no way of invalidating the cache.  In
example above the data is cached for 5 minutes and no amount of
or shift-refresh shift-ctr-refresh etc. which is supposed to ignore
caching seems to reset it.  Should it be caching like this and if so can
invalidate it?
This topic is locked and can not be replied to.