I want Google Chrome to stop caching my localhost since I change its files so often. How do I do this?

I see it can be done while opening the dev tools here: Clear cache for specific domain name in chrome

However, I'm looking for a solution that does not require the dev tools to remain open.

I am running WEBrick, a rails server, on localhost and would be happy to tell it not to cache files in any browser.

  • 1
    Are you willing to consider an alternative method: Configuring your web server to tell all browsers (not just chrome) not to cache pages on your site? If so, please edit your question to include which web server you are running on your localhost. – lzam Sep 18 '14 at 2:33
  • @lzam, thanks, I updated my question – Eric Baldwin Sep 18 '14 at 8:32
  • 1
    Using [the keyboard shortcut <kbd>Ctrl</kbd>-<kbd>F5</kbd> is a simple way to force a cache refresh][1]. [1]: stackoverflow.com/a/385384/325251 – mvark Sep 19 '14 at 8:10
  • That sounds useful, mvark, thanks – Eric Baldwin Sep 20 '14 at 1:52

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.