Skip to content

Commit ee97ab2

Browse files
authored
Merge pull request rails#52246 from heka1024/immutable-http-cache-doc [ci-skip]
Document `immutable` option in `expires_in`
2 parents d43ee20 + a1a0931 commit ee97ab2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

actionpack/lib/action_controller/metal/conditional_get.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ def stale?(object = nil, **freshness_kwargs)
260260
# `:stale_if_error`
261261
# : Sets the value of the `stale-if-error` directive.
262262
#
263+
# `:immutable`
264+
# : If true, adds the `immutable` directive.
265+
#
263266
#
264267
# Any additional key-value pairs are concatenated as directives. For a list of
265268
# supported `Cache-Control` directives, see the [article on

0 commit comments

Comments
 (0)