fix: add try_files fallback in static asset location for Livewire JS route
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
idevakk
2026-03-10 00:19:43 +05:30
parent 6fd6b5dc8a
commit 5bd12e4482

View File

@@ -58,8 +58,9 @@ server {
fastcgi_hide_header X-Powered-By;
}
# Cache static assets
# Cache static assets (with fallback to PHP for virtual routes like /livewire/livewire.js)
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
try_files $uri /index.php?$query_string;
expires 30d;
add_header Cache-Control "public, no-transform";
access_log off;