From 087240aa67e451f1e8bd2836d5e29d6968fba4ea Mon Sep 17 00:00:00 2001 From: Arksine <9563098+Arksine@users.noreply.github.com> Date: Fri, 16 Apr 2021 07:29:18 -0400 Subject: [PATCH] app: don't return 304 for static files Signed-off-by: Eric Callahan --- moonraker/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/moonraker/app.py b/moonraker/app.py index a657e13..44a22eb 100644 --- a/moonraker/app.py +++ b/moonraker/app.py @@ -391,6 +391,10 @@ class FileRequestHandler(AuthorizedFileHandler): raise tornado.web.HTTPError(e.status_code, str(e)) self.finish({'result': filename}) + def should_return_304(self): + # Disable file caching + return False + @tornado.web.stream_request_body class FileUploadHandler(AuthorizedRequestHandler): def initialize(self, max_upload_size):