Skip to content

Commit

Permalink
Always revalidate entry html files
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed Apr 17, 2024
1 parent dac8593 commit ec40b61
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dashboard/Caddyfile
Expand Up @@ -7,6 +7,13 @@
root * /usr/share/caddy

handle {
@non-static not {
file
path *.ico *.css *.js *.gif *.webp *.avif *.jpg *.jpeg *.png *.svg *.woff *.woff2
}
# Always revalidate, except for static files
header @non-static Cache-Control "no-cache"

file_server {
precompressed br gzip
}
Expand Down

0 comments on commit ec40b61

Please sign in to comment.