instance method handle_conditional_get!

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18 Private

Signature

handle_conditional_get!()

No documentation comment.

Source
# File actionpack/lib/action_controller/response.rb, line 185
      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 185 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Response

Type at least 2 characters to search.

↑↓ navigate · open · esc close