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:
@@ -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 {
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user