make sure cache gets cleared
This commit is contained in:
parent
8432a5c669
commit
668ef51cef
@ -12,7 +12,10 @@ module Flowerbox
|
|||||||
|
|
||||||
def _call(env)
|
def _call(env)
|
||||||
if sprockets_file = env['PATH_INFO'][%r{/__F__(.*)$}, 1]
|
if sprockets_file = env['PATH_INFO'][%r{/__F__(.*)$}, 1]
|
||||||
sprockets.call(env.merge('QUERY_STRING' => 'body=1', 'PATH_INFO' => sprockets_file))
|
result = sprockets.call(env.merge('QUERY_STRING' => 'body=1', 'PATH_INFO' => sprockets_file))
|
||||||
|
result[1]['Cache-Control'] = 'max-age: 0'
|
||||||
|
|
||||||
|
result
|
||||||
else
|
else
|
||||||
[ 200, { 'Content-type' => 'text/html' }, [ runner.template ] ]
|
[ 200, { 'Content-type' => 'text/html' }, [ runner.template ] ]
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user