Search code examples
google-chrome

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?


Solution

  • 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.