Closed
Description
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
Yes
Which terms did you search for in User Guide?
service worker
Environment
node -v
: v8.6.0npm -v
:yarn --version
(if you use Yarn): 1.3.2npm ls react-scripts
(if you haven’t ejected): [email protected]
Then, specify:
- Operating system: Mac
- Browser and version (if relevant): Chrome v63
Steps to Reproduce
https://redirect.netlify.com/
The first link works, but not the second. Why?
import React from "react";
const App = () => (
<div>
<p>
<a href="http://redirect.netlify.com/manifest.json">
http://redirect.netlify.com/manifest.json
</a>
</p>
<p>
<a href="https://redirect.netlify.com/manifest.json">
https://redirect.netlify.com/manifest.json
</a>
</p>
</div>
);
export default App;
Service worker code: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/src/registerServiceWorker.js