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
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue