Agregar control de caché no-cache para index.html en nginx

This commit is contained in:
Jose Selesan
2026-09-16 16:06:31 -03:00
parent 8e4ba6e3dd
commit 3ca2771ebe

View File

@@ -15,6 +15,10 @@ server {
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
location = /index.html {
add_header Cache-Control "no-cache";
}
location ~* \.(?:js|css|svg|png|jpg|jpeg|gif|ico|webp|woff2?)$ { location ~* \.(?:js|css|svg|png|jpg|jpeg|gif|ico|webp|woff2?)$ {
expires 1y; expires 1y;
add_header Cache-Control "public, immutable"; add_header Cache-Control "public, immutable";