We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e7620b commit b368c68Copy full SHA for b368c68
actionpack/lib/action_dispatch/http/cache.rb
@@ -138,15 +138,13 @@ def generate_strong_etag(validators)
138
def cache_control_segments
139
if cache_control = _cache_control
140
cache_control.delete(" ").split(",")
141
- else
142
- []
143
end
144
145
146
def cache_control_headers
147
cache_control = {}
148
149
- cache_control_segments.each do |segment|
+ cache_control_segments&.each do |segment|
150
directive, argument = segment.split("=", 2)
151
152
if SPECIAL_KEYS.include? directive
0 commit comments