From c70bb0c0320852d54a8c22af2fd52e150ad2b804 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 22 Nov 2015 01:20:39 +1100 Subject: [PATCH] we got to clean up js debugging, its busting caching. --- app/controllers/static_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb index 0247fe328b6..3387e8c3638 100644 --- a/app/controllers/static_controller.rb +++ b/app/controllers/static_controller.rb @@ -142,6 +142,7 @@ class StaticController < ApplicationController # we must disable acceleration otherwise NGINX strips # access control headers request.env['sendfile.type'] = '' + # TODO send_file chunks which kills caching, need to render text here send_file(path, opts) end