Failed to register Service Worker: Security Error because of redirect

If you cURL the service worker URL do you get a 3xx instead of a 2xx response?