Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: assets loading issues #434

Merged

Conversation

blake-newman
Copy link
Contributor

Add check to ensure that requests with 'other' resource type; with an
empty response body are skipped.

The shouldRequestResolve in asset-discovery-service is used to capture
resource hints in older chromium versions. Cypress versions < 3.5.0 used
chrome 61 whilst above versions have upgraded to 73.

In chrome 61 the resource hint type requests recieved the request
purpose in he header. In future versions, confirmed 73+, this header is
not sent.

In newer chrome versions we can check the request resourceType; if of
type 'other' and with an empty response body we can skip the handling of
this request.

Add check to ensure that requests with 'other' resource type; with an
empty response body are skipped.

The `shouldRequestResolve` in `asset-discovery-service` is used to capture
resource hints in older chromium versions. Cypress versions < 3.5.0 used
chrome 61 whilst above versions have upgraded to 73.

In chrome 61 the resource hint type requests recieved the request
purpose in he header. In future versions, confirmed 73+, this header is
not sent.

In newer chrome versions we can check the request `resourceType`; if of
type 'other' and with an empty response body we can skip the handling of
this request.
@Robdel12 Robdel12 merged commit 4028538 into percy:master Dec 9, 2019
djones pushed a commit that referenced this pull request Dec 9, 2019
## [0.20.3](v0.20.2...v0.20.3) (2019-12-09)

### Bug Fixes

* assets loading issues ([#434](#434)) ([4028538](4028538))
@blake-newman blake-newman deleted the blake.newman/fix-asset-loading-issue branch December 9, 2019 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants