Hard refresh

A hard refresh reloads the current web page and makes the browser download the page and its files again instead of reusing the copies it cached on an earlier visit. It acts on one page, in one browser, on one device, and it leaves cookies, logins and the cached files of other sites where they were.

The longer version

The shortcut depends on the browser and the operating system. Google's Chrome help lists Ctrl+Shift+R or Shift+F5 on Windows and Linux and Command+Shift+R on a Mac, under the name reload the current page, ignoring cached content. Microsoft's shortcut list for Edge gives the same keys: Ctrl+Shift+R or Shift+F5 on Windows and Command+Shift+R on a Mac. Firefox binds Ctrl+Shift+R and Ctrl+F5 on Windows and Linux, and Command+Shift+R on a Mac, to its reload that skips the cache. Safari is the odd one. WebKit's Web Inspector documentation lists Option+Command+R as the shortcut that reloads the inspected page from origin, which means from the server, and the developer commands only appear once Show features for web developers is ticked in Safari Settings, under Advanced. Phones have no shortcut at all. On Android, Chrome's route is More, then Delete browsing data, then More options and cached images and files. On an iPhone, Apple's route is Settings, Apps, Safari, Advanced, Website Data, then Remove All Website Data, which also removes the data sites use to keep a person signed in.

A hard refresh sits between two other actions that are often confused with it. A normal reload lets the browser reuse any cached file the server said was still fresh, so an old stylesheet or script can survive it. Clearing the cache empties the stored files of every site in that browser and is a heavier step than one page needs. For a reviewer who is checking fixes all afternoon, Google's DevTools documentation describes a third option: the Disable cache checkbox in the Network panel, which keeps the browser cache off while DevTools is open.

In a client review, the hard refresh is the first answer to a fix that is not live. The developer deployed, the client opens the page and the bug is still there, because their browser ran yesterday's script from its cache. One hard refresh settles which of two problems the team has. If the bug disappears, the fix is live and the client was looking at a cached copy, and every other visitor who holds that copy may still see the bug until it expires, which is the developer's question of cache busting and not something the client can solve on their side. If the bug is still there after a hard refresh, the cache was not the cause: the deployment, a CDN, the wrong environment or the fix itself is. Either way, a reviewer who writes that they hard refreshed before reopening the ticket saves a round of questions.

Common questions

What is the shortcut key for a hard refresh?

Ctrl+Shift+R on Windows and Linux and Command+Shift+R on a Mac work in Chrome, Edge and Firefox, according to each browser's own shortcut list. Safari differs: WebKit lists Option+Command+R for reloading the page from origin, and Safari's developer features have to be turned on under Settings, Advanced first.

Is Ctrl+F5 a hard refresh?

Ctrl+F5 is Firefox's second hard refresh shortcut on Windows and Linux, and Microsoft's DevTools shortcut page lists it as a hard refresh in Edge while DevTools is open. Google's Chrome help lists Shift+F5 and Ctrl+Shift+R instead, so Ctrl+Shift+R is the one combination that the vendors document across all three browsers on Windows.

What does Ctrl+Shift+R do in Chrome?

Google's Chrome help describes Ctrl+Shift+R as reload the current page, ignoring cached content. Chrome fetches the page and its files from the server again instead of using its stored copies, so a changed stylesheet or script is downloaded fresh. The Mac equivalent is Command+Shift+R.

How do you hard refresh on an iPhone or Android phone?

Mobile browsers have no hard refresh shortcut. The vendor route is to clear the cached files: in Chrome on Android, More, Delete browsing data, More options, then cached images and files; on an iPhone, Settings, Apps, Safari, Advanced, Website Data, then Remove All Website Data, which also removes the login information sites saved, so expect to sign in again.

Is a hard refresh the same as clearing the cache?

A hard refresh re-downloads the files of the page in front of you and leaves the rest of the cache alone. Clearing the cache deletes the stored files of every site in the browser, and clearing cookies as well signs you out of them. For checking one fix, the hard refresh is enough.

Why is a fix still not showing after a hard refresh?

Once the browser has re-downloaded the page, its own cache is no longer the cause. The usual reasons are a deployment that has not finished or went to another environment, a CDN still serving the old file, a page served by a service worker, or a fix that does not work. Reopen the ticket and say that you hard refreshed.

Bug reports that arrive ready to triage.

Collect replay, console, network and browser context with the Free plan.

<script src="…/widget.js" data-key="pb_pub_…">