capacitor
capacitor copied to clipboard
Service worker injection workaround
Requests from service workers use "Accept: /" so checking for "text/html" in Accept header can't work. As a workaround, add check if proxy request URL contains ".html" and treat it as HTML if it does. This is the same as what handleLocalRequest does to identify HTML files.
See https://github.com/ionic-team/capacitor/issues/5278
@chrisharris77 we don't need the fix in ios ?