Large javascript file has incorrect mimetype
ymor opened this issue · 2 comments
What is your Scenario?
When using testcafe against firefox/safari, so using the hammerhead proxy. One of my js files is incorrectly been served as text/html which firefox is blocking. The only difference in this file to the others is its quite large. I've created a contrived example at https://github.com/ymor/test-cafe-issue
What is the Current behavior?
Javascript file should have correct content-type
What is the Expected behavior?
Javascript file should have the correct content-type
What is your public website URL? (or attach your complete example)
https://github.com/ymor/test-cafe-issue
What is your TestCafe test code?
See https://github.com/ymor/test-cafe-issue
Your complete configuration file
No response
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
Follow steps in readme in the repo
TestCafe version
3.3.0
Node.js version
v18.17.1
Command-line arguments
see package.json
Browser name(s) and version(s)
Firefox 118 Chrome 118
Platform(s) and version(s)
Windows 11
Other
Actually not convinced its due to size. After doing some tweaking to dependencies I've got the file down to 709kb on disk and its still an issue.
We appreciate you taking the time to share the information about this issue. We replicated it, and it is currently in our internal queue. Please note that the research may take time. We'll update this thread once we have news.