Fix cache issues
This commit is contained in:
11
Caddyfile
11
Caddyfile
@@ -29,12 +29,11 @@ jenkins.lucasroyer.fr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
portfolio.lucasroyer.fr {
|
portfolio.lucasroyer.fr {
|
||||||
# Cache
|
# Server cache
|
||||||
cache {
|
cache {
|
||||||
ttl 24h
|
ttl 24h
|
||||||
stale 12h
|
stale 12h
|
||||||
}
|
}
|
||||||
|
|
||||||
# Security
|
# Security
|
||||||
header {
|
header {
|
||||||
X-Frame-Options "DENY"
|
X-Frame-Options "DENY"
|
||||||
@@ -44,13 +43,7 @@ portfolio.lucasroyer.fr {
|
|||||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Static files
|
# Log
|
||||||
@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
|
output file /data/portfolio_access.log
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user