-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(404): no cache for 404 #3226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# nginx -t
nginx: [emerg] invalid number of arguments in "try_files" directive in /etc/nginx/sites-enabled/00-nodejs.org:39
nginx: configuration file /etc/nginx/nginx.conf test failed |
Yeah, that makes sense. It was a bet, let me change that. |
@richardlau done. |
# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful 🎉 Going to deploy 🤞 . |
@richardlau I've just made an update using |
With the alias # nginx -t
nginx: [emerg] the "alias" directive cannot be used inside the named location in /etc/nginx/sites-enabled/00-nodejs.org:39
nginx: configuration file /etc/nginx/nginx.conf test failed |
Let's keep it without the alias, then. |
Wait, if the real path is /en/404/index.html ... shouldn't that actually be causing problems? How is it able to find /en/404.html? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making sure this doesn't land with the alias (failing nginx -t
).
nginix is still unhappy: # nginx -t
nginx: [emerg] the "alias" directive cannot be used inside the named location in /etc/nginx/sites-enabled/00-nodejs.org:39
nginx: configuration file /etc/nginx/nginx.conf test failed |
Yeah, alias cannot be used within named locations. That makes sense. |
# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful 🎉 |
@richardlau this needs to get merged first nodejs/nodejs.org#5155 (If you apply the nginx config now next.js default 404 is gone, meaning /404.html doesn't exist anymore) |
I've just merged the PR on |
c7ab832 is now deployed |
This PR adds no-cache for 404 pages