Q
Why must service workers run on HTTPS (except on localhost)?
ABecause HTTP lacks cookies
BBecause they are written in Java
CTo speed up caching
DThey can intercept and modify network requests, so they need a secure origin to prevent tampering
Correct Answer:
D. They can intercept and modify network requests, so they need a secure origin to prevent tampering
Explanation:
Service workers are the basis of Progressive Web Apps (offline support and push notifications).
ALSO KNOW (related points):
• In Chrome, what is the address bar called that combines URL entry with search? → Omnibox
• Which statement about bookmarklets is correct? → They are bookmarks whose URL begins with javascript:, which run code on the current page
• What does about:blank do? → It opens an empty page generated internally by the browser, without contacting any server