Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome insists on keeping stale/old javascript code and won't reload the recent version

I'm doing some very simple web dev and using chrome's debugger. The included javascript never seems to update when I modify the source. I can delete the contents of the whole file and it still loads stale code (unless I restart chrome). If I remove permissions on the file, it notices and won't load the page but when replacing permissions the old code is back. This happens both when fetching via http and the local file directly. No amount of spamming reload or ctrl-F5 works. I've tried clearing and manually deleting the cache and even setting the don't cache option in the developer options. I don't think chrome's in local modifications mode but I can never tell (this "feature" is amazingly buggy if not sometimes quite desirable). I don't have this issue in firefox but specifically want to test chrome at the moment.

Has anyone seen this before? What are the common causes? What can I do to prevent this happening?

I'm running fedora 18 with google-chrome 31.0.1650.39-1 - and after noting a newer version - 32.0.1700.19-1. Both have the same issue.

like image 756
jozxyqk Avatar asked Dec 02 '13 05:12

jozxyqk


1 Answers

I think ctl-shift-r does a "hard reload," ignoring any cache.

like image 133
Jordan P Avatar answered Oct 22 '22 12:10

Jordan P