diff --git a/pkg/api/http/controller/main.py b/pkg/api/http/controller/main.py index 3c8097b8..60882359 100644 --- a/pkg/api/http/controller/main.py +++ b/pkg/api/http/controller/main.py @@ -107,4 +107,8 @@ class HTTPController: elif path.endswith('.txt'): mimetype = 'text/plain' - return await quart.send_from_directory(frontend_path, path, mimetype=mimetype) + response = await quart.send_from_directory(frontend_path, path, mimetype=mimetype) + response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate' + response.headers['Pragma'] = 'no-cache' + response.headers['Expires'] = '0' + return response