parent
3d2f500751
commit
db1b0f5742
@ -1,17 +1,19 @@
|
|||||||
:80 {
|
:80 {
|
||||||
# Set this path to your site's directory.
|
log
|
||||||
root * /usr/share/caddy
|
|
||||||
|
|
||||||
# Compress responses according to Accept-Encoding headers
|
# Set this path to your site's directory.
|
||||||
encode zstd gzip
|
root * /usr/share/caddy
|
||||||
|
|
||||||
# Client side caching
|
# Compress responses according to Accept-Encoding headers
|
||||||
@static {
|
encode zstd gzip
|
||||||
file
|
|
||||||
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2
|
|
||||||
}
|
|
||||||
header @static Cache-Control max-age=31536000
|
|
||||||
|
|
||||||
# Enable the static file server.
|
# Client side caching
|
||||||
file_server
|
@static {
|
||||||
}
|
file
|
||||||
|
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2
|
||||||
|
}
|
||||||
|
header @static Cache-Control max-age=31536000
|
||||||
|
|
||||||
|
# Enable the static file server.
|
||||||
|
file_server
|
||||||
|
}
|
Loading…
Reference in New Issue