Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome loading cached files on localhost

I'm having this problem across 2 different machines now.

Version 63.0.3239.84 (Official Build) (64-bit) OSX 10.12.6

Chrome is persistently loading old cached files on http://localhost:3000. The only way I can stop it, is to use incognito. If I use cmd + shift + r it works for a single refresh, then goes back to the old files on reload.

I typically have the inspector up so I've tried ticked disable cache, that doesn't nothing. I've also tried deleting my cached files through chrome's settings, that does nothing.

Anything I'm missing here?

like image 979
rbhalla Avatar asked Dec 23 '17 14:12

rbhalla


People also ask

How do I not cache in localhost?

You can press Ctrl+Shift+R for a hard reload which will reload without cache. Save this answer.


1 Answers

Finally realised what it was. A previous server I was running on that port had a manifest file and the appropriate service workers. It means that chrome was loading those cached files by default.

To fix it I went into developer tools > application > clear storage.

It now works as expected.

like image 183
rbhalla Avatar answered Dec 05 '22 23:12

rbhalla