make sure cache gets cleared

This commit is contained in:
John Bintz 2012-04-11 16:15:58 -04:00
parent 8432a5c669
commit 668ef51cef

View File

@ -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