-
Notifications
You must be signed in to change notification settings - Fork 15
Description
How to Cache Bust and Force a Website to Load the Latest Version
Browser caching speeds up page loads by storing files locally, but it can show outdated content after updates. "Cache busting" forces the browser to fetch the freshest version.
Here are reliable user-side methods to clear or bypass cache for a specific website.
Quick Methods (No Settings Needed)
1. Hard Refresh (Bypasses Cache for the Current Page)
This reloads the page while ignoring most cached files—often enough to see updates.
- Google Chrome, Microsoft Edge, Firefox (Windows):
Ctrl + F5orCtrl + Shift + R - Chrome, Firefox, Edge (Mac):
Command + Shift + R - Safari (Mac):
Command + Option + R(orCommand + Option + Eto empty cache, then reload) - Any browser: Hold
Shiftand click the reload button, or right-click the reload button and select "Hard Reload."
For a deeper clean in Chrome/Edge: Open Developer Tools (F12 or Ctrl + Shift + I), right-click the reload button, and choose Empty Cache and Hard Reload.
2. Add a Query String to the URL (Manual Cache Bust)
Append a random parameter to the URL to make it appear new.
- Example: If the site is
https://example.com, change it tohttps://example.com/?v=123orhttps://example.com/?cachebust=20260108 - Hit Enter. The browser treats it as a fresh request.
This works once; remove the parameter afterward.
Permanent Methods: Clear Cached Data for One Specific Site
These remove stored files (images, CSS, JS) for just that domain.
Google Chrome / Microsoft Edge
- Go to Settings > Privacy, search, and services > Clear browsing data (or directly to
chrome://settings/siteData). - In the search bar, type the site's domain (e.g.,
example.com). - Click the trash icon next to the site to remove cookies and cache.
- Reload the page.
Alternative: Visit the site, click the lock icon in the address bar > Site settings > Clear data.
Mozilla Firefox
- Go to Settings > Privacy & Security > Cookies and Site Data > Manage Data.
- Search for the domain.
- Select it and click Remove Selected.
- Restart Firefox if needed.
Apple Safari
- Go to Safari > Settings > Privacy > Manage Website Data.
- Search for the domain.
- Select it and click Remove.
- Click Done, then reload the page.
Additional Tips
- Incognito/Private Mode — Open the site in a private window (
Ctrl + Shift + Nin Chrome)—no cache applies. - When to Use These — After site updates, if changes don't appear, or for troubleshooting broken styles/scripts.
- Hard refreshes and query strings are fastest; full site-data clears are thorough but may log you out.
These steps ensure you always see the latest version—great for development or checking live updates!