[Vuejs]-Deploy Laravel to AWS EC2

0👍

I encountered this behavior when the server was enabled OPcache.

try clear OPcache

https://jenssegers.com/77/clearing-php-s-opcache-with-cachetool

0👍

Adding a version number on your app.js every time you compile your assets should fix this. If you are using Laravel mix, simply add on webpack.mix.js file

if (mix.inProduction()) {
    mix.version(); // this will add a version number to your app.js 
                   //  every time you do `npm run production`
                   // ex: app.js?id=b35f8fd52c344cb84a52
}

Leave a comment