Caddyfile Caching header

This commit is contained in:
hay-kot 2021-05-23 15:27:58 -07:00
commit e91185ca59

View file

@ -6,11 +6,17 @@
:80 { :80 {
@proxied path /api/* /docs /openapi.json @proxied path /api/* /docs /openapi.json
@static {
file
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.webp
}
encode gzip zstd encode gzip zstd
uri strip_suffix / uri strip_suffix /
# Handles Recipe Images / Assets # Handles Recipe Images / Assets
handle_path /api/media/recipes/* { handle_path /api/media/recipes/* {
header @static Cache-Control max-age=5184000
root * /app/data/recipes/ root * /app/data/recipes/
file_server file_server
} }