ri > ActionController::EtagWithTemplateDigest

= ActionController::EtagWithTemplateDigest

------------------------------------------------------------------------
= Includes:
ActionController::ConditionalGet (from /home/chedong/.local/share/rdoc)

------------------------------------------------------------------------
= Extended by:
ActiveSupport::Concern (from /home/chedong/.local/share/rdoc)

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
When our views change, they should bubble up into HTTP cache freshness
and bust browser caches. So the template digest for the current action
is automatically included in the ETag.

Enabled by default for apps that use Action View. Disable by setting

  config.action_controller.etag_with_template_digest = false

Override the template to digest by passing :template to fresh_when and
stale? calls. For example:

  # We're going to render widgets/show, not posts/show
  fresh_when @post, template: 'widgets/show'

  # We're not going to render a template, so omit it from the ETag.
  fresh_when @post, template: false
------------------------------------------------------------------------

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 16:41 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!