Skip to content

Commit

Permalink
Fix ETags to include cache_key and locale only.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Bauers committed Apr 30, 2014
1 parent 37aa614 commit ab2b47d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/locomotive/render.rb
Expand Up @@ -67,11 +67,8 @@ def prepare_and_set_response(output)

# Inputs which define the ETag for this response
etag_inputs = {
'page' => @page,
'params' => {
'page_path' => params[:page_path],
'locale' => params[:locale]
}
'page' => @page.cache_key,
'locale' => params[:locale]
}

if @page.with_cache?
Expand Down

0 comments on commit ab2b47d

Please sign in to comment.