WebExeBuilder Documentation

reloadNoCache

Category: Browser Control

Namespace: web.browser.reloadNoCache

Description

Reload the current page without using cached resources. This forces a fresh download of all page content.

Syntax

await web.browser.reloadNoCache();

Parameters

None

Returns

Promise<boolean> - Returns true when operation completes

Example

Simple example

await web.browser.reloadNoCache();

Practical example

document.getElementById('hard-reload-btn').addEventListener('click', async () => {
    await web.browser.reloadNoCache();
});

Advanced example

async function hardRefresh() {
    const url = await web.browser.getCurrentUrl();
    console.log('Hard reloading (no cache):', url);
    
    await web.browser.reloadNoCache();
    
    console.log('Page reloaded with fresh content');
}

Use Cases

  • Force fresh content download
  • Clear cached resources
  • Debug caching issues
  • Ensure latest content
  • Bypass cache for updates
  • Implement hard refresh
  • Implement keyboard shortcuts (Ctrl+F5)
  • Force resource reload
  • web.browser.reload()
  • web.browser.navigate()
  • web.browser.stop()

Notes

  • Part of browser control functionality
  • Asynchronous operation
  • Returns promise