The Network panel now allows overriding network request responses with local files.

https://bugzilla.mozilla.org/1849920

1849920 - Add support network response override for any request in the netmonitor

RESOLVED (jdescottes) in DevTools - Netmonitor. Last updated 2025-02-20.

@firefoxnightly does this feature also work when using service workers? I just tried it out on a page with service workers and the override didn't work. The line in the network tab was still marked as overridden but the response was the original.