mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Consistently capitalize ETag.
This commit is contained in:
parent
49f8356f33
commit
2210521040
1 changed files with 3 additions and 3 deletions
|
@ -13,9 +13,9 @@ module ActionController
|
|||
end
|
||||
|
||||
module ClassMethods
|
||||
# Allows you to consider additional controller-wide information when generating an etag.
|
||||
# Allows you to consider additional controller-wide information when generating an ETag.
|
||||
# For example, if you serve pages tailored depending on who's logged in at the moment, you
|
||||
# may want to add the current user id to be part of the etag to prevent authorized displaying
|
||||
# may want to add the current user id to be part of the ETag to prevent authorized displaying
|
||||
# of cached pages.
|
||||
#
|
||||
# class InvoicesController < ApplicationController
|
||||
|
@ -54,7 +54,7 @@ module ActionController
|
|||
# fresh_when(etag: @article, last_modified: @article.created_at, public: true)
|
||||
# end
|
||||
#
|
||||
# This will render the show template if the request isn't sending a matching etag or
|
||||
# This will render the show template if the request isn't sending a matching ETag or
|
||||
# If-Modified-Since header and just a <tt>304 Not Modified</tt> response if there's a match.
|
||||
#
|
||||
# You can also just pass a record where +last_modified+ will be set by calling
|
||||
|
|
Loading…
Reference in a new issue