lib/sinatra/assetpack/class_methods.rb in sinatra-assetpack-0.1.1 vs lib/sinatra/assetpack/class_methods.rb in sinatra-assetpack-0.1.2

- old
+ new

@@ -28,10 +28,11 @@ [ package.mtime, package.minify ] } content_type package.type last_modified mtime + assets_expires contents end end end @@ -48,10 +49,10 @@ pass if settings.assets.ignored?("#{path}/#{file}") # Send headers content_type fmt.to_sym last_modified File.mtime(fn).to_i - expires 86400*30, :public + assets_expires format = File.extname(fn)[1..-1] if AssetPack.supported_formats.include?(format) # Static file