mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
Caddyfile Caching header
This commit is contained in:
parent
5a41f18cb6
commit
e91185ca59
1 changed files with 6 additions and 0 deletions
|
@ -5,12 +5,18 @@
|
|||
|
||||
:80 {
|
||||
@proxied path /api/* /docs /openapi.json
|
||||
|
||||
@static {
|
||||
file
|
||||
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.webp
|
||||
}
|
||||
|
||||
encode gzip zstd
|
||||
uri strip_suffix /
|
||||
|
||||
# Handles Recipe Images / Assets
|
||||
handle_path /api/media/recipes/* {
|
||||
header @static Cache-Control max-age=5184000
|
||||
root * /app/data/recipes/
|
||||
file_server
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue