From 720070bee8f1205d06edfbfc8faf0e41080d0f3a Mon Sep 17 00:00:00 2001 From: lrdlg Date: Thu, 26 Nov 2026 16:13:50 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20cache-busting=20CSS/JS=20et=20revalidati?= =?UTF-8?q?on=20Cache-Control=20pour=20les=20th=C3=A8mes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/main.js | 2 +- deploy/nginx.conf | 3 +-- index.html | 32 ++++++++++++++++---------------- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index 48dc516..9a58991 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -28,7 +28,7 @@ import { initMotion } from "./modules/motion.js"; import { initNavigation } from "./modules/navigation.js"; import { initScrollSpy } from "./modules/scroll-spy.js"; import { initBackToTop } from "./modules/back-to-top.js"; -import { initCopyEmail } from "./modules/copy-email.js"; +import { initCopyEmail } from "./modules/copy-email.js?v=20261126"; /** * Démarre les modules de la page. diff --git a/deploy/nginx.conf b/deploy/nginx.conf index 6e7a590..b345da9 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -82,8 +82,7 @@ server { # ========================================================================= location ~* \.(css|js)$ { - expires 7d; - add_header Cache-Control "public, max-age=604800"; + add_header Cache-Control "public, max-age=0, must-revalidate"; access_log off; } diff --git a/index.html b/index.html index 85038c9..7827072 100644 --- a/index.html +++ b/index.html @@ -116,9 +116,9 @@ ICO pour la compatibilité historique. ========================================================================== --> - + - + - - - - - - - - - - - - + + + + + + + + + + + + - + - +