Cache & DevTools

Two utilities sit in the Mosaic toolbar that you'll reach for regularly during a QA session: the purge-cache button and DevTools.

Purge cache

The purge-cache button (the X icon at the right end of the toolbar) clears the shared HTTP cache and reloads all three panes. The cache is shared across panes via the persist:mosaic-shared session partition, so a single purge applies to everything.

This is the button you reach for when:

What gets cleared

What does not get cleared

To clear cookies or storage in the current build, open DevTools on any pane, switch to the Application tab, and clear them from there. A dedicated "clear all session data" button is on the roadmap for a future build.

DevTools for each pane

Mosaic exposes DevTools via two keyboard shortcuts:

The pane DevTools windows are detached (not docked into the pane) because the pane areas are too narrow in Fit mode to fit a usable DevTools panel. Detached windows can be moved to a second monitor or sized independently.

Inspecting elements

The Inspect Element shortcut (Cmd+Shift+C in the DevTools window) works inside each pane's DevTools, scoped to that pane's content. Right-click and "Inspect Element" within a pane's content area also work.

Console isolation

Each pane's DevTools console is independent. console.log output from the Mobile pane appears only in the Mobile DevTools window, not the Desktop or Tablet windows. This is how Chromium isolates WebContents - it's not a Mosaic limitation.

Reload

The toolbar reload button (or Cmd+R) reloads all three panes from the network. To reload while bypassing cache without doing a full purge, hold Shift while clicking reload (Cmd+Shift+R) - this performs a single hard reload across all three panes without clearing cookies or storage.

See also