I have created an app with react and laravel, whenever made an update and deploy it, the client browser does not update the cahnges, it always load from the cache. When I am using in an incognito window or cleared the browser cache the changes reflected.
I have tried clearing npm cache as well as php artisan cache clean, It doesnt work out for me.
What should I do to clear the browser cache whenever I update the code?
Thank you in advance, Vicky
Running npm run prod
should re-generate assets with the proper versioning to solve the cache issue.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.