--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Sets the etag and/or last_modified on the response and checks it against the client request. If the request doesn't match the options provided, the request is considered stale and should be generated from scratch. Otherwise, it's fresh and we don't need to generate anything and a reply of &quot;304 Not Modified&quot; is sent.
- !ruby/struct:SM::Flow::P 
  body: "Example:"
- !ruby/struct:SM::Flow::VERB 
  body: "  def show\n    @article = Article.find(params[:id])\n\n    if stale?(:etag =&gt; @article, :last_modified =&gt; @article.created_at.utc)\n      @statistics = @article.really_expensive_call\n      respond_to do |format|\n        # all the supported formats\n      end\n    end\n  end\n"
full_name: ActionController::Base#stale?
is_singleton: false
name: stale?
params: (options)
visibility: protected
