Module: ManifestDestiny::Rails

Defined in:
lib/manifest-destiny.rb

Overview

Rails 2.3.x support

Instance Method Summary collapse

Instance Method Details

#render_manifest(root = ::Rails.public_path, &block) ⇒ Object



132
133
134
135
136
137
138
# File 'lib/manifest-destiny.rb', line 132

def render_manifest(root=::Rails.public_path, &block)
  manifest = ManifestDestiny.configure(:root => root, &block)
  response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
  response.headers["Pragma"] = "no-cache"
  response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
  render :text => manifest, :layout => false, :content_type => "text/cache-manifest"
end