mirror of
https://github.com/Cian-H/iform-invenio.git
synced 2025-12-22 20:41:56 +00:00
Corrected caddy caching for caddy v2
This commit is contained in:
@@ -4,16 +4,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
(site) {
|
(site) {
|
||||||
|
@cachedFiles {
|
||||||
|
path *.webp *.webm *.ico *.js *.css
|
||||||
|
}
|
||||||
|
header @cachedFiles Cache-Control "public, max-age=1814400, must-revalidate"
|
||||||
|
|
||||||
@landing {
|
@landing {
|
||||||
path / /contact* /about*
|
path / /contact* /about*
|
||||||
cache {
|
|
||||||
ttl 86400s
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
handle /_app/* {
|
handle /_app/* {
|
||||||
cache {
|
|
||||||
ttl 86400s
|
|
||||||
}
|
|
||||||
reverse_proxy site:3000
|
reverse_proxy site:3000
|
||||||
}
|
}
|
||||||
handle @landing {
|
handle @landing {
|
||||||
@@ -25,9 +24,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
handle /repo* {
|
handle /repo* {
|
||||||
cache {
|
|
||||||
ttl 86400s
|
|
||||||
}
|
|
||||||
uri strip_prefix /repo
|
uri strip_prefix /repo
|
||||||
reverse_proxy repo-placeholder:80
|
reverse_proxy repo-placeholder:80
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user