module ManifestDestiny::Rails
Rails
2.3.x support
Public Instance Methods
render_manifest(root=::Rails.public_path, &block)
click to toggle source
# 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