lib/vitrine.rb in vitrine-0.0.28 vs lib/vitrine.rb in vitrine-0.0.29
- old
+ new
@@ -21,9 +21,10 @@
set :raise_errors, true
# Sets whether Vitrine will output messages about dynamic assets
set :silent, true
set :public_folder, ->{ File.join(settings.root, 'public') }
+ set :static_cache_control, [:public, :must_revalidate, :max_age => 60 * 60]
use Vitrine::AssetCompiler
# For extensionless things try to pick out the related templates
# from the views directory, and render them with a default layout.
\ No newline at end of file