diff --git a/bazarr/app/ui.py b/bazarr/app/ui.py index 30614895d..8680e90c4 100644 --- a/bazarr/app/ui.py +++ b/bazarr/app/ui.py @@ -91,7 +91,7 @@ def catch_all(path): @check_login @ui_bp.route('/bazarr.log') def download_log(): - return send_file(os.path.join(args.config_dir, 'log', 'bazarr.log'), cache_timeout=0, as_attachment=True) + return send_file(os.path.join(args.config_dir, 'log', 'bazarr.log'), max_age=0, as_attachment=True) @check_login @@ -134,7 +134,7 @@ def movies_images(url): @check_login @ui_bp.route('/system/backup/download/', methods=['GET']) def backup_download(filename): - return send_file(os.path.join(settings.backup.folder, filename), cache_timeout=0, as_attachment=True) + return send_file(os.path.join(settings.backup.folder, filename), max_age=0, as_attachment=True) @ui_bp.route('/api/swaggerui/static/', methods=['GET'])