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, 2014 at 2:33
  • 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, 2014 at 8:10


You must log in to answer this question.

Browse other questions tagged .