hubcap reload

Reload the current page.

When to use

Use reload to reload the current page. Use --bypass-cache to force fresh resources from the server. Use goto to navigate to a different URL.

Usage

hubcap reload [--bypass-cache]

Arguments

None.

Flags

FlagTypeDefaultDescription
—bypass-cacheboolfalseBypass browser cache

Output

FieldTypeDescription
reloadedboolWhether the page reload was triggered
ignoreCacheboolWhether the cache was bypassed
{"reloaded":true,"ignoreCache":false}

Errors

ConditionExit codeStderr
Chrome not connected2error: connecting to Chrome: ...
Timeout3error: timeout

Examples

Reload the current page:

hubcap reload

Reload while bypassing the cache:

hubcap reload --bypass-cache

Force-reload and wait for the page to finish loading (chaining):

hubcap reload --bypass-cache && hubcap waitload

See also

  • goto - Navigate to a URL
  • back - Navigate back in history
  • forward - Navigate forward in history
  • waitload - Wait for the page load event