When browsers load assets such as CSS and JS they will locally cache them so that they can served quicker the next time users visit the website. A way around this is to add a querystring timestamp to the end of the asset URLs this will make sure that the browser downloads the latest version each time. But this may be overkill, you don't need users to download the files every time, they only need to be downloaded if something has changed.

Then we can add versioning to your JavaScript files by using the version method. mix.js('resources/js/app.js', 'public/js') .extract(['vue']) .version(); The version method will create a unique hash to append to the files.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners