Caddy headers
This commit is contained in:
parent
02bf9e2505
commit
02bf72f6d9
|
@ -9,7 +9,7 @@ framework:
|
|||
async:
|
||||
dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
|
||||
retry_strategy:
|
||||
max_retries: 1
|
||||
max_retries: 0
|
||||
delay: 60000
|
||||
multiplier: 2
|
||||
max_delay: 0
|
||||
|
@ -17,7 +17,7 @@ framework:
|
|||
async_ap:
|
||||
dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
|
||||
retry_strategy:
|
||||
max_retries: 1
|
||||
max_retries: 0
|
||||
delay: 65000
|
||||
multiplier: 2
|
||||
max_delay: 0
|
||||
|
|
|
@ -9,6 +9,16 @@
|
|||
|
||||
log
|
||||
|
||||
@static {
|
||||
path_regexp \.(ico|css|js|gif|jpg|webp|jpeg|png|svg|woff)$
|
||||
}
|
||||
header @static Cache-Control max-age=259200
|
||||
|
||||
handle_path /media/cache/resolve* {
|
||||
header Cache-Control "public" max-age=259200
|
||||
try_files {uri} {uri}/ /index.php?{query_string}
|
||||
}
|
||||
|
||||
route {
|
||||
root * /srv/app/public
|
||||
mercure {
|
||||
|
@ -30,5 +40,4 @@ route {
|
|||
php_fastcgi unix//var/run/php/php-fpm.sock
|
||||
encode zstd gzip
|
||||
file_server
|
||||
header /media/* Cache-Control max-age=5184000
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
<button class="show-preview"
|
||||
data-action="preview#show"
|
||||
aria-label="{{ 'preview'|trans }}"
|
||||
data-preview-url-param="{{ entry.url }}"
|
||||
data-preview-url-param="{{ entry.url ?? uploaded_asset(entry.image.filePath) }}"
|
||||
data-preview-ratio-param="{{ entry.domain and entry.domain.shouldRatio ? true : false }}">
|
||||
<i class="fa-solid fa-photo-film"></i>
|
||||
</button>
|
||||
|
|
Loading…
Reference in a new issue