lib/ember_cli/deploy/file.rb in ember-cli-rails-0.7.1 vs lib/ember_cli/deploy/file.rb in ember-cli-rails-0.7.2

- old
+ new

@@ -11,11 +11,11 @@ def mountable? true end def to_rack - Rack::File.new(app.dist_path.to_s) + Rack::File.new(app.dist_path.to_s, rack_headers) end def index_html if index_file.exist? index_file.read @@ -25,9 +25,15 @@ end private attr_reader :app + + def rack_headers + { + "Cache-Control" => Rails.configuration.static_cache_control, + } + end def check_for_error_and_raise! app.check_for_errors! raise BuildError.new <<-MSG