method

set_conditional_cache_control!

rails latest stable - Class: ActionController::AbstractResponse

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.2.1) is shown here.

set_conditional_cache_control!()
private

No documentation available.

# File actionpack/lib/action_controller/response.rb, line 164
      def set_conditional_cache_control!
        if headers['Cache-Control'] == DEFAULT_HEADERS['Cache-Control']
          headers['Cache-Control'] = 'private, max-age=0, must-revalidate'
        end
      end