Module Responders::HttpCacheResponder
In: lib/responders/http_cache_responder.rb

Set HTTP Last-Modified headers based on the given resource. It‘s used only on API behavior (to_format) and is useful for a client to check in the server if a resource changed after a specific date or not.

This is not usually not used in html requests because pages contains a lot information besides the resource information, as current_user, flash messages, widgets… that are better handled with other strategies, as fragment caches and the digest of the body.

Methods

Public Class methods

Public Instance methods

Protected Instance methods

[Validate]