20 lines
560 B
Nginx Configuration File
20 lines
560 B
Nginx Configuration File
server {
|
|
listen 3013;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Assets com hash (Vite): cache imutável por 1 ano
|
|
location /assets/ {
|
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
|
try_files $uri =404;
|
|
}
|
|
|
|
# index.html: nunca cachear — o browser sempre busca a versão mais recente
|
|
location / {
|
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
|
add_header Pragma "no-cache";
|
|
add_header Expires "0";
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|