Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix javascript file referencing old version

My problem is when I edit my previous javascript or css file link to my html file, the function/code that I add are not functioning even I delete the whole code in my js file. The previous code only is functioning.

like image 967
shiro Jacinto Avatar asked Dec 31 '25 23:12

shiro Jacinto


1 Answers

It might be your cache were not deleted ,that's why it still using your previous javascript file.

To fix that:

  • Empty your cache

  • (In GoogleChrome ) Open developer tools( or press F12 ) then You can right click on refresh and select Empty Cache and Hard Reload

Your updated javascript now will be loaded.


CLEAR GOOGLE CHROME CACHE

CLEAR FIREFOX CACHE

CLEAR INTERNET EXPLORER CACHE

like image 80
Dyrandz Famador Avatar answered Jan 02 '26 14:01

Dyrandz Famador



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!