The docs are right - I was wrong. We cache for 12 hours.
Oren
On Wed, Sep 22, 2010 at 5:17 PM, Keenan Brock wrote:
> I could have sworn it was 24. But the documentation said 12...
>
> http://docs.heroku.com/http-caching
>
> What is the best channel to request an update to the docs?
>
> --Keenan
I could have sworn it was 24. But the documentation said 12...
http://docs.heroku.com/http-caching
What is the best channel to request an update to the docs?
--Keenan
On Sep 22, 2010, at 3:08 PM, Oren Teich wrote:
> Heroku by default caches all static assets in /public for 24 hours.
>
> Oren
I just used a template for a new rails app that sets up everything for
use with Mongoid. The mongoid.yml file looks like this:
production:
host: <%= ENV['MONGOID_HOST'] %>
port: <%= ENV['MONGOID_PORT'] %>
username: <%= ENV['MONGOID_USERNAME'] %>
password: <%= ENV['MONGOID_PASSWORD'] %>
Heroku by default caches all static assets in /public for 24 hours.
Oren
On Wed, Sep 22, 2010 at 3:39 AM, Alex wrote:
> Sorry, I should have specified,
>
> the files stored in /public on rails for instance. These aren't
> managed by a controller (so no headers that way) and I was wondering
> if
I agree with Steve,
1) Static assets served from public are cached for 12 hours. (
http://docs.heroku.com/http-caching under Static Assets)
2) Setting up your own Rack::Static has a bug in it that is not setting the
cache headers, and it is not possible to override. I thought the Heroku team
Does Heroku not apply these headers for you? Looking at my site I see
Cache-Control:public, max-age=43200 added to any images served from public?
I was surprised to learn that ActionDispatch::Static/Rails doesn't cache the
static files in production but I guess it does make sense. You could alwa
Sorry, I should have specified,
the files stored in /public on rails for instance. These aren't
managed by a controller (so no headers that way) and I was wondering
if heroku had a default approach to them.
It occurs to me that this may be entirely a Rack issue, though
hopefully somebody here can