Re: [Rails] Why is max-age in config.static_cache_control being ignored?

2012-10-18 Thread Jordon Bedwell
On Wed, Oct 17, 2012 at 9:15 PM, Cary Cherng cche...@gmail.com wrote: In config/environments/production.rb I have set config.serve_static_assets = true config.static_cache_control = public, max-age=1000 If I remember right, anything served from /app/assets is not considered static to the

Re: [Rails] Why is max-age in config.static_cache_control being ignored?

2012-10-18 Thread Cary Cherng
I solved my problem by running RAILS_ENV=production bundle exec rake assets:precompile It appears that the setting for config.static_cache_control is being lazily cached. If I do the following, I get back max-age=1000 in the response header config.static_cache_control = public, max-age=1000

[Rails] Why is max-age in config.static_cache_control being ignored?

2012-10-17 Thread Cary Cherng
In config/environments/production.rb I have set config.serve_static_assets = true config.static_cache_control = public, max-age=1000 But the response header for application-fingerprint.css is something like the following where you can see max-age hasn't been changed to 1000. I'm assuming this