Open fullyfaltu opened 7 years ago
The server uses redirect method of express (https://github.com/erikras/react-redux-universal-hot-example/blob/master/src/server.js#L86), the default status is 302, I get the status 302.
If you use my fork with service worker, you have a status 200 because the response is provided by the service worker.
I'm using react-router to redirect page. Here is what I am doing:
this.context.router.replace('cats');
It redirects page but responds
200 OK
code. I want301 code
if page is redirected. How can I fix this thing?