fix: pass asset request to server if does not exist on system

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-07-17 13:24:27 -04:00
parent 532e099146
commit 7e81e130c9
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -87,9 +87,11 @@ server {
}
}
# Handle asset files (css, js, images, etc.) - serve directly if they exist
# Handle asset files (css, js, images, etc.) - serve directly if they
# exist, otherwise hand off to the front controller so app routes whose
# paths end in asset extensions (e.g. DAV resources) keep working.
location ~* \.(css|js|mjs|svg|gif|png|jpg|jpeg|ico|woff|woff2|ttf|eot|map)$ {
try_files $uri =404;
try_files $uri @php;
expires 1m;
add_header Cache-Control "public, immutable";
types {
+4 -2
View File
@@ -57,9 +57,11 @@ server {
add_header Cache-Control "no-cache, must-revalidate";
}
# Handle asset files (css, js, images, etc.) - serve directly if they exist
# Handle asset files (css, js, images, etc.) - serve directly if they
# exist, otherwise hand off to the front controller so app routes whose
# paths end in asset extensions (e.g. DAV resources) keep working.
location ~* \.(css|js|svg|gif|png|jpg|jpeg|ico|woff|woff2|ttf|eot|map)$ {
try_files $uri =404;
try_files $uri @php;
expires 1y;
add_header Cache-Control "public, immutable";
}