disable the inline editor launch button if the page to display enabled the cache (quick patch for #353)

This commit is contained in:
Didier Lafforgue 2012-04-16 11:49:04 +02:00
parent 655fe18d72
commit b25332b262

View File

@ -88,7 +88,8 @@ module Locomotive
fresh_when :etag => @page, :last_modified => @page.updated_at.utc, :public => true fresh_when :etag => @page, :last_modified => @page.updated_at.utc, :public => true
if @page.cache_strategy != 'simple' # varnish if @page.cache_strategy != 'simple' # varnish
response.cache_control[:max_age] = @page.cache_strategy response.headers['Editable'] = ''
response.cache_control[:max_age] = @page.cache_strategy
end end
end end