Fix cache issues

This commit is contained in:
2026-01-08 18:37:43 +00:00
parent f4ab14da3f
commit 163f8dffd9

View File

@@ -29,12 +29,11 @@ jenkins.lucasroyer.fr {
}
portfolio.lucasroyer.fr {
# Cache
# Server cache
cache {
ttl 24h
stale 12h
}
# Security
header {
X-Frame-Options "DENY"
@@ -44,13 +43,7 @@ portfolio.lucasroyer.fr {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
}
# Static files
@static {
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2
}
header @static Cache-Control "public, max-age=604800, must-revalidate"
# 4. Logs (pour voir tes stats de visites dans Docker)
# Log
log {
output file /data/portfolio_access.log
}