pastorsj / blog-api

A simple api for storing users and blogs
https://pastorsj.github.io/blog-api/
MIT License
3 stars 2 forks source link

Refreshing page in production leads to page not found #70

Closed pastorsj closed 6 years ago

pastorsj commented 6 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Support request

Current behavior

When I refresh the page in production, the page returns a Not Found error. This seems to be nginx related.

Expected behavior

When I refresh the page, I expect the page to remain on the same page as before, unless I am not authenticated.

What is the motivation for this change?

User friendliness and somewhat security related.

Environment



- Node version: XX  
- Platform:  

Others:

pastorsj commented 6 years ago

It seems like an express problem. I have fixed the issue in production, but a ctrl shift r will lead to the same problem