Date: 2023.12.16
Issue: The website homepage (static page) suddenly cannot be accessed in the evening, but the internal content pages can still be accessed. However, it is not completely inaccessible, as some devices/browsers can access it, while others are redirected to a blank page.
Solution process:
- Initially, the browser did not redirect to the about page, but instead resolved to a strange error page. So, I initially thought it was a DNS pollution issue. However, it has not been reproduced since then, and it has always been redirecting to the about page.
- Following the suggestion of my team partner @vico, I tried testing "Can I get the page HTML by using wget on the server?"
The result showed a 304 Not Modified error.
> wget http://localhost:3000 > ...ERROR 304: Not Modified.
- Continuing with @vico's help, we found this issue and discovered that it was the same error. Based on the comments in the issue, we decided to upgrade the version of Next.js. Finally, we upgraded from 13.5.6 to 14.0.4, and so far, the same problem has not reoccurred.