From 951a614919fc9881d43deff89e70766aee66e1ea Mon Sep 17 00:00:00 2001 From: MangoPig Date: Tue, 9 Dec 2025 19:14:10 +0000 Subject: [PATCH] Fixed Prod --- 00-Lesson-Site/frontend/Dockerfile | 2 +- 00-Lesson-Site/frontend/serve.json | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/00-Lesson-Site/frontend/Dockerfile b/00-Lesson-Site/frontend/Dockerfile index 2ed131c..b59fe3a 100644 --- a/00-Lesson-Site/frontend/Dockerfile +++ b/00-Lesson-Site/frontend/Dockerfile @@ -40,4 +40,4 @@ COPY serve.json ./dist # Expose the port you want for production (e.g., 3000 or 80) EXPOSE 3000 -CMD ["serve", "dist", "-l", "3000", "--single", "--config", "serve.json"] \ No newline at end of file +CMD ["serve", "dist", "-l", "3000", "--config", "serve.json"] \ No newline at end of file diff --git a/00-Lesson-Site/frontend/serve.json b/00-Lesson-Site/frontend/serve.json index 31e6776..ad1f2df 100644 --- a/00-Lesson-Site/frontend/serve.json +++ b/00-Lesson-Site/frontend/serve.json @@ -18,6 +18,15 @@ } ] }, + { + "source": "**/*.@(html|json)", + "headers": [ + { + "key": "Cache-Control", + "value": "no-cache, no-store, must-revalidate" + } + ] + }, { "source": "**", "headers": [