mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
more aggressive caching
This commit is contained in:
parent
e91185ca59
commit
a0859abf98
1 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
@static {
|
@static {
|
||||||
file
|
file
|
||||||
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.webp
|
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.webp
|
||||||
}
|
}
|
||||||
|
|
||||||
encode gzip zstd
|
encode gzip zstd
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
# 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
|
header @static Cache-Control max-age=31536000
|
||||||
root * /app/data/recipes/
|
root * /app/data/recipes/
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
handle {
|
handle {
|
||||||
|
header @static Cache-Control max-age=31536000
|
||||||
root * /app/dist
|
root * /app/dist
|
||||||
try_files {path}.html {path} /index.html
|
try_files {path}.html {path} /index.html
|
||||||
file_server
|
file_server
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue