- Add Cache-Control: no-cache on HTML responses so browser always gets fresh index.html (hashed asset filenames handle JS/CSS cache-busting) - Fix Dockerfile: re-copy api/index.md after extract stage overwrites - Revert onBrokenLinks to warn (category links unresolvable at build) - Fix api/index.md links to use absolute /category/ paths
18 lines
379 B
Nginx Configuration File
18 lines
379 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
add_header Cache-Control "no-cache, must-revalidate";
|
|
}
|
|
|
|
location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico|woff2?)$ {
|
|
expires 1h;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
}
|