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
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
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
Heroku by default caches all static assets in /public for 24 hours.
Oren
On Wed, Sep 22, 2010 at 3:39 AM, Alex a...@heaton.me 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
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 o...@heroku.com wrote:
Heroku by default caches all static assets in /public for 24
The docs are right - I was wrong. We cache for 12 hours.
Oren
On Wed, Sep 22, 2010 at 5:17 PM, Keenan Brock kee...@thebrocks.net 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
This what you're looking for?
http://docs.heroku.com/http-caching
On Tue, Sep 21, 2010 at 10:36 PM, Alex a...@heaton.me wrote:
I'm wondering about the options for caching of public files, I would
image they are cached by default?
How do you set caching headers on them for instance?
--