Fix cache issues
This commit is contained in:
11
Caddyfile
11
Caddyfile
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user