fresh_when(record_or_options, additional_options = {})
Instance Public methods
Sets the etag, last_modified, or both on the response and
renders a 304 Not Modified response if the request is already
fresh.
Parameters:
:etag.
:last_modified.
:public By default the Cache-Control header is private, set
this to true if you want your application to be cachable by
other devices (proxy caches).
Example:
def show
@article = Article.find(params[:id])
fresh_when(etag: @article, l