diff --git a/__pycache__/main.cpython-312.pyc b/__pycache__/main.cpython-312.pyc index 7faad21..6510535 100644 Binary files a/__pycache__/main.cpython-312.pyc and b/__pycache__/main.cpython-312.pyc differ diff --git a/main.py b/main.py index 55990b4..1776ca5 100644 --- a/main.py +++ b/main.py @@ -840,5 +840,9 @@ async def serve_static(path: str): """Serve static files or return index.html for SPA routes.""" file_path = static_dir / path if file_path.exists() and file_path.is_file(): - return FileResponse(str(file_path)) + response = FileResponse(str(file_path)) + # Prevent caching of JS/CSS so code changes take effect without hard refresh + if path.endswith(('.js', '.css')): + response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate' + return response return FileResponse(str(static_dir / "index.html")) \ No newline at end of file diff --git a/renderer/carbone-templates/433a0593-d3cf-414e-8763-ab5f87cbc75c.docx b/renderer/carbone-templates/433a0593-d3cf-414e-8763-ab5f87cbc75c.docx index 4b2cb21..d69f6ae 100644 Binary files a/renderer/carbone-templates/433a0593-d3cf-414e-8763-ab5f87cbc75c.docx and b/renderer/carbone-templates/433a0593-d3cf-414e-8763-ab5f87cbc75c.docx differ diff --git a/renderer/carbone-templates/registry.json b/renderer/carbone-templates/registry.json index 2afa399..ce6829e 100644 --- a/renderer/carbone-templates/registry.json +++ b/renderer/carbone-templates/registry.json @@ -6,6 +6,6 @@ "originalName": "master_cv_template.docx", "path": "/root/workspace/cv-app/renderer/carbone-templates/433a0593-d3cf-414e-8763-ab5f87cbc75c.docx", "uploadedAt": "2026-07-16T09:03:29.601Z", - "updatedAt": "2026-07-16T11:12:12.609Z" + "updatedAt": "2026-07-16T11:15:01.909Z" } ] \ No newline at end of file diff --git a/static/index.html b/static/index.html index 64c1b43..6d81234 100644 --- a/static/index.html +++ b/static/index.html @@ -139,7 +139,7 @@
- - + +