diff --git a/docker/nginx.conf b/docker/nginx.conf index a4c4ed2..1989727 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -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;