instance method handle_conditional_get!

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3 Private

Signature

handle_conditional_get!()

No documentation comment.

Source
# File actionpack/lib/action_controller/response.rb, line 144
      def handle_conditional_get! 
        if etag? || last_modified? 
          set_conditional_cache_control! 
        elsif nonempty_ok_response? 
          self.etag = body 

          if request && request.etag_matches?(etag) 
            self.status = '304 Not Modified' 
            self.body = '' 
          end 

          set_conditional_cache_control! 
        end 
      end

Defined in actionpack/lib/action_controller/response.rb line 144 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::AbstractResponse

Type at least 2 characters to search.

↑↓ navigate · open · esc close