You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an HTML document is loaded in a secondary browser window with, e.g., a link with target="blank", that page does not receive the cross-origin support injection from the proxy. Depending on the caching strategy in place, when loading this URL in the AUT, the browser will serve the cached version of the document. If cross origin support is necessary for the driver to communicate with the AUT, the test will hang while waiting for the cross origin postMessage handshake.
Desired behavior
These documents should cause a cache miss, instead of a cache hit.
The proxy should recalculate etag headers when it injects code into AUT-rendered documents, and keep track of etag recalculations on given URLs for ensuring appropriate 304 responses on future requests. This will resolve the issue when etag cache control is in place.
A manual workaround to manually clear browser cache for other cache control strategies
The text was updated successfully, but these errors were encountered:
cacieprins
changed the title
Flaky test:
Flaky test: issue 1244 nested iframe does not strip link _parent
Jan 10, 2024
cacieprins
changed the title
Flaky test: issue 1244 nested iframe does not strip link _parent
Pages cached by the browser in non-proxied windows remain cached when loaded in the AUT
Jan 11, 2024
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
Current behavior
When an HTML document is loaded in a secondary browser window with, e.g., a link with
target="blank"
, that page does not receive the cross-origin support injection from the proxy. Depending on the caching strategy in place, when loading this URL in the AUT, the browser will serve the cached version of the document. If cross origin support is necessary for the driver to communicate with the AUT, the test will hang while waiting for the cross originpostMessage
handshake.Desired behavior
These documents should cause a cache miss, instead of a cache hit.
etag
headers when it injects code into AUT-rendered documents, and keep track of etag recalculations on given URLs for ensuring appropriate 304 responses on future requests. This will resolve the issue when etag cache control is in place.Test code to reproduce
This spec reliably reproduces this bug in Electron open mode:
https://github.com/cypress-io/cypress/blob/develop/packages/driver/cypress/e2e/issues/1244.cy.js
Cypress Version
13.6.2
Node Version
18.15.0
Operating System
MacOS Sonoma 14.1.1
The text was updated successfully, but these errors were encountered: