2 ms·
Ok. If you're going to have a DNS worker, wouldn't it make more sense to call the http one the HTTP worker? Isn't DNS a service?
by peterwwillis 9y ago
Ok. If you're going to have a DNS worker, wouldn't it make more sense to call the http one the HTTP worker? Isn't DNS a service?
- kentonv 9y agoWe called it a Service Worker because the API follows the W3C standard Service Worker spec: https://www.w3.org/TR/service-workers-1/ https://www.w3.org/TR/service-workers-1/ https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API https://developer.mozilla.org/en-US/docs/Web/API/Service_Wor... I agree that the naming is not completely intuitive, but these are the names that exist and so we're using them. I'm not aware of any similar spec for DNS workers so I figure we'll use whatever name we want there.