{
  "doc": {
    "id": "api/commands/reload",
    "title": "reload | Cypress Documentation",
    "description": "Reload the page in Cypress.",
    "section": "api",
    "source_path": "/llm/markdown/api/commands/reload.md",
    "version": "a8fd16711bdda4c7b5645b9717e588ae99ec2470",
    "updated_at": "2026-05-18T17:21:32.047Z",
    "headings": [
      {
        "id": "api/commands/reload#reload",
        "text": "reload",
        "level": 1
      },
      {
        "id": "api/commands/reload#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/commands/reload#usage",
        "text": "Usage",
        "level": 3
      },
      {
        "id": "api/commands/reload#arguments",
        "text": "Arguments",
        "level": 3
      },
      {
        "id": "api/commands/reload#yields-learn-about-subject-management",
        "text": "Yields Learn about subject management",
        "level": 3
      },
      {
        "id": "api/commands/reload#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/commands/reload#no-args",
        "text": "No Args",
        "level": 3
      },
      {
        "id": "api/commands/reload#reload-the-page-as-if-the-user-clicked-refresh",
        "text": "Reload the page as if the user clicked 'Refresh'",
        "level": 4
      },
      {
        "id": "api/commands/reload#force-reload",
        "text": "Force Reload",
        "level": 3
      },
      {
        "id": "api/commands/reload#reload-the-page-without-using-the-cache",
        "text": "Reload the page without using the cache",
        "level": 4
      },
      {
        "id": "api/commands/reload#rules",
        "text": "Rules",
        "level": 2
      },
      {
        "id": "api/commands/reload#requirements-learn-about-chaining-commands",
        "text": "Requirements Learn about chaining commands",
        "level": 3
      },
      {
        "id": "api/commands/reload#assertions-learn-about-assertions",
        "text": "Assertions Learn about assertions",
        "level": 3
      },
      {
        "id": "api/commands/reload#timeouts-learn-about-timeouts",
        "text": "Timeouts Learn about timeouts",
        "level": 3
      },
      {
        "id": "api/commands/reload#command-log",
        "text": "Command Log",
        "level": 2
      },
      {
        "id": "api/commands/reload#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/commands/reload#syntax",
      "doc_id": "api/commands/reload",
      "heading": "Syntax",
      "heading_level": 2,
      "content_markdown": "## Syntax\n\n```\ncy.reload()cy.reload(forceReload)cy.reload(options)cy.reload(forceReload, options)\n```\n\n### Usage\n\n**Correct Usage**\n\n```\ncy.reload()\n```\n\n### Arguments\n\n**forceReload _(Boolean)_**\n\nWhether to reload the current page without using the cache. `true` forces the reload without cache.\n\n**options _(Object)_**\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `log` | `true` | Displays the command in the [Command log](/llm/markdown/app/core-concepts/open-mode.md#Command-Log) |\n| `timeout` | [`pageLoadTimeout`](/llm/markdown/app/references/configuration.md#Timeouts) | Time to wait for `cy.reload()` to resolve before [timing out](#Timeouts) Note: Network requests are limited by the underlying operating system, and may still time out if this value is increased. |\n\n### Yields [Learn about subject management](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Subject-Management)\n\n*   `cy.reload()` yields the `window` object after the page finishes loading.\n*   It is [unsafe](/llm/markdown/app/core-concepts/retry-ability.md#Only-queries-are-retried) to chain further commands that rely on the yielded `window` after `cy.reload()`.\n",
      "section": "api",
      "anchors": [
        "syntax"
      ],
      "path": "/llm/json/chunked/api/commands/reload.json",
      "token_estimate": 175
    },
    {
      "id": "api/commands/reload#arguments",
      "doc_id": "api/commands/reload",
      "heading": "Arguments",
      "heading_level": 3,
      "content_markdown": "### Arguments\n\n**forceReload _(Boolean)_**\n\nWhether to reload the current page without using the cache. `true` forces the reload without cache.\n\n**options _(Object)_**\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `log` | `true` | Displays the command in the [Command log](/llm/markdown/app/core-concepts/open-mode.md#Command-Log) |\n| `timeout` | [`pageLoadTimeout`](/llm/markdown/app/references/configuration.md#Timeouts) | Time to wait for `cy.reload()` to resolve before [timing out](#Timeouts) Note: Network requests are limited by the underlying operating system, and may still time out if this value is increased. |\n",
      "section": "api",
      "anchors": [
        "arguments"
      ],
      "path": "/llm/json/chunked/api/commands/reload.json",
      "token_estimate": 113
    },
    {
      "id": "api/commands/reload#yields-learn-about-subject-management",
      "doc_id": "api/commands/reload",
      "heading": "Yields Learn about subject management",
      "heading_level": 3,
      "content_markdown": "### Yields [Learn about subject management](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Subject-Management)\n\n*   `cy.reload()` yields the `window` object after the page finishes loading.\n*   It is [unsafe](/llm/markdown/app/core-concepts/retry-ability.md#Only-queries-are-retried) to chain further commands that rely on the yielded `window` after `cy.reload()`.\n",
      "section": "api",
      "anchors": [
        "yields-learn-about-subject-management"
      ],
      "path": "/llm/json/chunked/api/commands/reload.json",
      "token_estimate": 44
    },
    {
      "id": "api/commands/reload#examples",
      "doc_id": "api/commands/reload",
      "heading": "Examples",
      "heading_level": 2,
      "content_markdown": "## Examples\n\n### No Args\n\n#### Reload the page as if the user clicked 'Refresh'\n\n```\ncy.visit('http://localhost:3000/admin')cy.get('#undo-btn').click().should('not.be.visible')cy.reload()cy.get('#undo-btn').click().should('not.be.visible')\n```\n\n### Force Reload\n\n#### Reload the page without using the cache\n\n```\ncy.visit('http://localhost:3000/admin')cy.reload(true)\n```\n",
      "section": "api",
      "anchors": [
        "examples"
      ],
      "path": "/llm/json/chunked/api/commands/reload.json",
      "token_estimate": 43
    },
    {
      "id": "api/commands/reload#rules",
      "doc_id": "api/commands/reload",
      "heading": "Rules",
      "heading_level": 2,
      "content_markdown": "## Rules\n\n### Requirements [Learn about chaining commands](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Chains-of-Commands)\n\n*   `cy.reload()` requires being chained off of `cy`.\n*   `cy.reload()` requires the response to be `content-type: text/html`.\n*   `cy.reload()` requires the response code to be `2xx` after following redirects.\n*   `cy.reload()` requires the load `load` event to eventually fire.\n\n### Assertions [Learn about assertions](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Assertions)\n\n*   `cy.reload()` will automatically wait for assertions you have chained to pass.\n\n### Timeouts [Learn about timeouts](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Timeouts)\n\n*   `cy.reload()` can time out waiting for the page to fire its `load` event.\n*   `cy.reload()` can time out waiting for assertions you've added to pass.\n",
      "section": "api",
      "anchors": [
        "rules"
      ],
      "path": "/llm/json/chunked/api/commands/reload.json",
      "token_estimate": 127
    },
    {
      "id": "api/commands/reload#requirements-learn-about-chaining-commands",
      "doc_id": "api/commands/reload",
      "heading": "Requirements Learn about chaining commands",
      "heading_level": 3,
      "content_markdown": "### Requirements [Learn about chaining commands](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Chains-of-Commands)\n\n*   `cy.reload()` requires being chained off of `cy`.\n*   `cy.reload()` requires the response to be `content-type: text/html`.\n*   `cy.reload()` requires the response code to be `2xx` after following redirects.\n*   `cy.reload()` requires the load `load` event to eventually fire.\n",
      "section": "api",
      "anchors": [
        "requirements-learn-about-chaining-commands"
      ],
      "path": "/llm/json/chunked/api/commands/reload.json",
      "token_estimate": 60
    },
    {
      "id": "api/commands/reload#timeouts-learn-about-timeouts",
      "doc_id": "api/commands/reload",
      "heading": "Timeouts Learn about timeouts",
      "heading_level": 3,
      "content_markdown": "### Timeouts [Learn about timeouts](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Timeouts)\n\n*   `cy.reload()` can time out waiting for the page to fire its `load` event.\n*   `cy.reload()` can time out waiting for assertions you've added to pass.\n",
      "section": "api",
      "anchors": [
        "timeouts-learn-about-timeouts"
      ],
      "path": "/llm/json/chunked/api/commands/reload.json",
      "token_estimate": 41
    },
    {
      "id": "api/commands/reload#command-log",
      "doc_id": "api/commands/reload",
      "heading": "Command Log",
      "heading_level": 2,
      "content_markdown": "## Command Log\n\n**_Reload the page_**\n\n```\ncy.reload()\n```\n\nThe commands above will display in the Command Log as:\n\nWhen clicking on `reload` within the command log, the console outputs the following:\n",
      "section": "api",
      "anchors": [
        "command-log"
      ],
      "path": "/llm/json/chunked/api/commands/reload.json",
      "token_estimate": 43
    }
  ]
}