Cypress clears all cookies and local storage before each test. Does it also clear the browser's file cache?
EDIT: Cypress automatically clears browser cache before the browser launches in Version 0.20.0. So, the cache will be cleared between each spec file is run.
No, Cypress does not clear browser cache before each test. Cypress respects the cache headers of your server. So if they are set, the browser will cache those files. This isn't really documented anywhere exactly, but I'm a developer at Cypress so know this is how it works.
If you want to see some different behavior, I suggest opening an issue on the OS Cypress project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With