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

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

Are you sure is it a chrome cache? I mean, check if its really chrome cache getting the full of data in another way like curl, for example:

curl 

If the content still not reloaded is not chrome problem but another think like your webserver.

If you are running Nginx don't worry it is Nginx configuration called sendfile and you can change it easily just doing this follow steps:

Step 1 - Open nginx configuration with your text editor(vim in my case)

vim /etc/nginx/nginx.conf

Step 2 - Search the line with this text:

sendfile on;

Step 3 - Change to off

sendfile off;

Step 4 - Restart your nginx:

/etc/init.d/nginx restart

Note: If you are using virtual environment like Vagrant reload it

vagrant reload
4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest