Laravel Public/js file is not updating on live server

Posted October 1, 2020 4.9k views

I changed some code in public/js/app.js file, it works fine on local server but when i do the same changes on live server it did not work. even I removed all codes from app.js file but still it does have any effect on it.

please someone help me

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there @tajamulhussain986,

It is quite possible that it is due to your browser cache. Make sure to clear your cache and try again. If you are using Google Chrome, you can refresh the cache for a certain page by pressing CTRL+Shift+R.

Another thing that could be causing this behavior is if you are using a CDN service like Cloudflare, in this case, you need to refresh the cache via your Cloudflare control panel as well.

Let me know how it goes.