app: don't return 304 for static files

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-04-16 07:29:18 -04:00
parent 210cae2736
commit 087240aa67
1 changed files with 4 additions and 0 deletions

View File

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