I am debugging the frontend issue which only happened in production. I am wondering if there is any way that I can mock the response of request or mock some static file.
For example,
When I call xxx.com, it loads index.html
and index.html
loads a.js
.
Since chrome cache the js, is it possible that we can mock the a.js
so that index.html
will load the mocked a.js
?
There is no way to mock a server response in devtool itself, but there are some chrome extensions helping with this: I've tried 7 of them, but ( Tweak ) the only one was able to:
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