Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service worker injection workaround #5428

Conversation

chrisharris77
Copy link

@chrisharris77 chrisharris77 commented Feb 11, 2022

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 #5278

…/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.
@riderx
Copy link

riderx commented Mar 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants