0

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

1

1 Answer 1

0

Running npm run prod should re-generate assets with the proper versioning to solve the cache issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.