diff --git a/bot_direct.py b/bot_direct.py index 468196c..34042b5 100644 --- a/bot_direct.py +++ b/bot_direct.py @@ -171,7 +171,10 @@ async def http_handler(websocket): async def process_request(connection, request): """Serve HTML for HTTP requests, upgrade for WebSocket.""" if request.path == "/" or request.path == "/test.html": - headers = Headers([("Content-Type", "text/html; charset=utf-8")]) + headers = Headers([ + ("Content-Type", "text/html; charset=utf-8"), + ("Cache-Control", "no-store, no-cache, must-revalidate"), + ]) return Response(200, "OK", headers, HTML_PAGE.encode()) if request.path == "/ws": return None # Let WebSocket handler take over