lib/faastruby/server/app.rb in faastruby-0.5.8 vs lib/faastruby/server/app.rb in faastruby-0.5.9
- old
+ new
@@ -12,9 +12,10 @@
set :show_exceptions, true
set :logging, true
set :root, SERVER_ROOT
set :public_folder, FaaStRuby::ProjectConfig.public_dir
set :static, true
+ set :static_cache_control, [:must_revalidate, :proxy_revalidate, :max_age => 0]
register Sinatra::MultiRoute
before do
cache_control :must_revalidate, :proxy_revalidate, :max_age => 0
end
route :head, :get, :post, :put, :patch, :delete, '/*' do
\ No newline at end of file