diff --git a/Dockerfile b/Dockerfile index e323d01..9ce9727 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,10 @@ RUN echo 'server { \ listen 3000; \ root /usr/share/nginx/html; \ index index.html; \ + location = /index.html { \ + expires -1; \ + add_header Cache-Control "no-store, no-cache, must-revalidate"; \ + } \ location / { \ try_files $uri $uri/ /index.html; \ expires 30d; \ @@ -44,4 +48,4 @@ RUN chown -R nginx:nginx /usr/share/nginx/html \ && chown -R nginx:nginx /var/log/nginx # Expose HTTP port (NPM will handle HTTPS) -EXPOSE 3000 \ No newline at end of file +EXPOSE 3000