What It Does
Cache Buster adds thehsCacheBuster parameter with a timestamp value to your URLs. This:
- Bypasses browser cache
- Bypasses CDN cache
- Forces HubSpot to regenerate page content
- Ensures you see the latest version of your content
How to Use It
Via Popup
- Click the FreshJuice extension icon
- Toggle Cache Buster on
- The page will reload with a timestamp parameter added
Via Context Menu
- Right-click anywhere on the page
- Select FreshJuice HubSpot DevTools → Add Cache Buster
- The page will reload with the parameter enabled
Via Keyboard Shortcut
UseCtrl+Shift+C (or Cmd+Shift+C on Mac) to toggle Cache Buster on the current page.
URL Parameter
Cache Buster adds this parameter with a Unix timestamp:Date.now() and changes every time:
- You toggle Cache Buster on
- You navigate to a new page (with persistence enabled)
- A link is hovered (with auto-apply enabled)
Unlike Debug Mode and Developer Mode which use static
true values, Cache Buster generates a new timestamp on each navigation to ensure maximum cache-busting effectiveness.Technical Details
Dynamic Value Generation
Fromsrc/lib/url-params.js:9:
value is a function that generates a fresh timestamp each time it’s called.
Application Logic
When applying parameters (src/popup/popup.js:187):
Persistence Behavior
On each navigation with persistence enabled (src/background/background.js:305):
Use Cases
Testing Template Changes
When you’ve updated a HubSpot template and want to see changes immediately:Debugging Caching Issues
To determine if an issue is cache-related:Content Publishing Workflow
When publishing new content or updates:Fresh Timestamps on Every Navigation
When Persist across sessions is enabled, Cache Buster behaves specially:- Initial page load:
hsCacheBuster=1709568000000 - Navigate to another page:
hsCacheBuster=1709568123456(new timestamp) - Navigate again:
hsCacheBuster=1709568234567(another new timestamp)
Auto-Apply to Links
When Auto-Apply Links is enabled, hovering over same-domain links generates a new timestamp for each link (src/content/content-script.js:86):
Removing Cache Buster
To remove the cache buster parameter:- Toggle off in popup - Removes parameter and reloads
- Context menu - Click “Remove Cache Buster”
- Forget website - Removes parameter and domain from allowed list
- Manual URL edit - Remove
&hsCacheBuster=...from the URL
Edge Cases
Parameter Already Exists
If the URL already hashsCacheBuster, the extension will:
- Remove it when toggling off
- Update it with a new timestamp when toggling on or navigating
Combined with Other Parameters
Cache Buster works alongside other debug parameters:Relative vs Absolute URLs
The extension handles both:Non-HubSpot Sites
ThehsCacheBuster parameter is HubSpot-specific. On non-HubSpot sites, it will be added to URLs but ignored by the server.
Performance Considerations
Cache Buster impacts performance by:- Forcing server-side content regeneration
- Preventing browser cache usage
- Bypassing CDN edge caches
- Increasing server load
- Enable only when actively developing or debugging
- Disable when finished testing
- Don’t use on production sites for regular browsing
Related Features
- Debug Mode - Enable HubSpot debugging output
- Developer Mode - Enable HubSpot developer features
- Auto-Apply Links - Propagate cache buster to all same-domain links
- Context Menus - Quick access to cache buster toggle