disable the inline editor launch button if the page to display enabled the cache (quick patch for #353)
This commit is contained in:
parent
655fe18d72
commit
b25332b262
@ -88,7 +88,8 @@ module Locomotive
|
||||
fresh_when :etag => @page, :last_modified => @page.updated_at.utc, :public => true
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user