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": [