diff --git a/serato_doctor/web.py b/serato_doctor/web.py index 57b1918..3646af8 100644 --- a/serato_doctor/web.py +++ b/serato_doctor/web.py @@ -6,6 +6,7 @@ from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer from importlib import resources from pathlib import Path from typing import Iterable, Optional +from urllib.parse import urlsplit from serato_doctor.crate_parser import load_library_crates from serato_doctor.database_parser import parse_database @@ -31,6 +32,7 @@ STATIC_FILES = { "/": ("index.html", "text/html; charset=utf-8"), "/app.css": ("app.css", "text/css; charset=utf-8"), "/recovery.css": ("recovery.css", "text/css; charset=utf-8"), + "/layout-fixes.css": ("layout-fixes.css", "text/css; charset=utf-8"), "/app.js": ("app.js", "text/javascript; charset=utf-8"), } @@ -296,7 +298,7 @@ def backup_history(serato: Path) -> dict: class SeratoDoctorHandler(BaseHTTPRequestHandler): def do_GET(self) -> None: - asset = STATIC_FILES.get(self.path) + asset = STATIC_FILES.get(urlsplit(self.path).path) if asset is None: self._json_response(404, {"error": "Not found"}) return @@ -308,6 +310,7 @@ class SeratoDoctorHandler(BaseHTTPRequestHandler): ) self.send_response(200) self.send_header("Content-Type", content_type) + self.send_header("Cache-Control", "no-store") self.send_header("Content-Length", str(len(content))) self.end_headers() self.wfile.write(content) diff --git a/serato_doctor/webui/index.html b/serato_doctor/webui/index.html index e14f3c0..8975ec4 100644 --- a/serato_doctor/webui/index.html +++ b/serato_doctor/webui/index.html @@ -5,8 +5,9 @@
Safety net
Review every repair snapshot saved for this Serato library. Older backups remain available after restarting Serato Doctor.
-Latest analysis
Safety net
Repair backups appear here automatically before any duplicate is consolidated. Review saved snapshots, disk usage, and restore history.
+