Hard refresh shortcuts for every browser

Ctrl+Shift+R on Windows, Cmd+Shift+R on Mac: the hard refresh shortcut for every browser, what it clears and what it leaves alone.
Back to blog

Hard refresh: shortcuts for Chrome, Firefox, Safari and Edge

Short answer

A hard refresh reloads a page and ignores the copy your browser saved. On Windows and Linux press Ctrl+Shift+R or Ctrl+F5. On a Mac press Cmd+Shift+R. In Safari press Cmd+Option+R. Use it when a page still shows old content after the site has been updated.

Browsers keep copies of images, scripts and styles so pages load faster. Sometimes that copy is out of date. A hard refresh asks the server for everything again. This page lists the shortcut for each browser, explains how it differs from a normal reload and from clearing the cache, and covers what testers should do on phones and in apps.

Article details
Question
What is the shortcut for a hard refresh?
Audience
Anyone who sees stale pages, and testers checking a fresh build
BetterQA team
50+ engineers, founded 2018
Clutch rating
4.9 / 5 from 71 reviews

Hard refresh shortcut by browser

BrowserWindows and LinuxMac
ChromeCtrl+Shift+R, Ctrl+F5 or Shift+F5Cmd+Shift+R
FirefoxCtrl+Shift+R or Ctrl+F5Cmd+Shift+R
EdgeCtrl+Shift+R or Ctrl+F5Cmd+Shift+R
SafariNot available on Windows or LinuxCmd+Option+R (Reload Page From Origin)

With a mouse, hold Shift and click the reload button in Chrome, Firefox or Edge. In Chrome and Edge you can also open developer tools (F12), right-click the reload button and choose Empty cache and hard reload.

Laptop keyboards often need the Fn key for F5. If Ctrl+F5 does nothing, use Ctrl+Shift+R instead.

Normal reload, hard refresh and clearing the cache

These three are often mixed up. They differ in how much saved data they ignore.

ActionWhat it doesUse it when
Normal reload (F5, Ctrl+R, Cmd+R)Reloads the page and may reuse saved files after checking they are still validYou only want to see the page again
Hard refreshReloads the page and every file on it, ignoring saved copiesA page shows old content, layout or scripts after an update
Empty cache and hard reload (developer tools open)Clears the saved files for the site, then reloadsA hard refresh is not enough, or you are debugging caching
Clear browsing dataDeletes saved files for the chosen period, and cookies or history if you tick themYou want a clean browser state or are fixing a stuck site

What a hard refresh does not clear

A hard refresh only affects saved page files in your browser. It does not clear cookies, so you stay logged in. It does not clear local storage or session storage, which web apps use to remember settings. It cannot clear a copy held somewhere else, such as a CDN or a service worker, which can still serve an old version.

If you need a clean first visit, clear the site data for that one site, or open a private window.

Why QA teams hard refresh before they test

If you test an old cached build, you can miss a bug that only exists in the new one, or report a bug that was already fixed. That wastes everyone's time and quietly lowers trust in the results.

  1. Check the version first. Confirm the build number or commit shown by the app or the version endpoint matches what was deployed.
  2. Hard refresh, then test. Do this after every deploy to the test environment, and again when a result looks like a bug you thought was fixed.
  3. Write it into the test plan. Put the step in the setup of your test cases, so every tester starts from the same state.
  4. Let automation start clean. Tools such as Playwright open each test in a fresh browser context with an empty cache, so a scripted test does not carry a stale cache from the last run.

When a page still looks stale after all of this, the cause is usually upstream: a CDN, a reverse proxy or a service worker. Hard refresh is the first check, not the last. Our test automation work builds the version check and the clean start into the pipeline.

Hard refresh on mobile and in desktop apps

There is no hard refresh shortcut on a phone, so you clear the saved data instead.

  • Safari on iPhone. Clear history and website data in Safari's settings (the menu location depends on the iOS version). Pulling the page down only does a normal reload.
  • Chrome on Android. Open the Chrome menu, then Settings, Privacy and security, Delete browsing data, and tick Cached images and files.
  • Native iOS app. Settings, General, iPhone Storage, choose the app and tap Offload App (keeps your data) or delete and reinstall.
  • Native Android app. Settings, Apps, the app, Storage, Clear Cache.
  • Desktop app. Look for a clear cache option in the app's settings. On macOS the cache often lives in ~/Library/Caches.
  • Progressive web app. Unregister the service worker in the browser's developer tools (Application tab), then reload.

Frequently asked questions

A hard refresh is a page reload that ignores the files your browser saved earlier and downloads everything again from the server. It is used when a page looks old after an update.
On Windows and Linux press Ctrl+Shift+R or Ctrl+F5. On a Mac press Cmd+Shift+R. In Safari on a Mac press Cmd+Option+R. In Chrome on Windows, Shift+F5 also works.
Yes, in Chrome, Firefox and Edge on Windows and Linux. A Mac keyboard has no Ctrl+F5 equivalent, so use Cmd+Shift+R there.
It is Chrome's hard refresh shortcut. It reloads the current page and bypasses the cached copies of its images, scripts and stylesheets. On a Mac the same action is Cmd+Shift+R.
No. It does not delete cookies or local storage, so you stay logged in. To remove those you need to clear site data or browsing data from the browser settings.
A hard refresh bypasses the cache for one page load and leaves the cache as it is. Clearing the cache deletes the saved files, so every later page load downloads them again. Use a hard refresh first.

Stale builds wasting your test runs?

Tell us what you are testing and we reply within one business day. We set up version checks and clean test environments in your pipeline.

Book a call Test automation
Share the Post: