Flowdock
method

prepare_cache_control!

Importance_0
v3.2.8 - Show latest stable - 0 notes - Class: ActionDispatch::Http::Cache::Response
prepare_cache_control!() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/http/cache.rb, line 74
        def prepare_cache_control!
          @cache_control = {}
          @etag = self[ETAG]

          if cache_control = self[CACHE_CONTROL]
            cache_control.split(/,\s*/).each do |segment|
              first, last = segment.split("=")
              @cache_control[first.to_sym] = last || true
            end
          end
        end
Register or log in to add new notes.