thewruck's avatar

GET example.com/build/assets/app-BY3viVot.css net::ERR_ABORTED 404 (Not Found)

I am using Ubuntu 24.04 and a LEMP stack and vite to host a Laravel 12 application. I am deploying with deployer and running npm run build on the server. Occasionally, I get hit with a caching bug.

My manifest.json has the correct file names, and vite build files (the auto-generated .css and .js files) do exist, but the page is still looking to old .css file name from somewhere in the past. For the present, the .js file is working. Feel like I have tried everything to clear the caches. Redis is not installed, and I know of no other cache service running on this box.

in my layouts/app.blade.php master page @vite(['resources/css/app.css', 'resources/js/app.js'])

manifest.json (file names are correct and do exist, but are not requested by the page) { "resources/css/app.css": { "file": "assets/app-Dm5N9a-J.css", "src": "resources/css/app.css", "isEntry": true }, "resources/js/app.js": { "file": "assets/app-CMW-OP0O.js", "name": "app", "src": "resources/js/app.js", "isEntry": true } }

0 likes
0 replies

Please or to participate in this conversation.