Join GitHub today
sinatra 1.3 :static_cache_control non functional? #692
I upgraded to padrino 10.3 (and sinatra 1.3.1) and added the following in app.rb:
set :static_cache_control => [:public, :max_age => 86400]
I don't see any cache control header being tagged onto static files being served out of public/ .. am I missing something or is this sinatra feature not supported by padrino?
This feature should be supported by padrino and is not supported only because of a bug. Thanks for bringing this up, somehow this behavior fell through the cracks in Padrino based on our handling of static assets.