capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

Service worker injection workaround

Open chrisharris77 opened this issue 3 years ago • 1 comments

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 avatar Feb 11 '22 20:02 chrisharris77

@chrisharris77 we don't need the fix in ios ?

riderx avatar Mar 25 '22 17:03 riderx