Skip to content
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

2020/06/25/status-code-matters #165

Open
utterances-bot opened this issue Aug 22, 2022 · 2 comments
Open

2020/06/25/status-code-matters #165

utterances-bot opened this issue Aug 22, 2022 · 2 comments

Comments

@utterances-bot
Copy link

状态码很重要 | Harttle Land

我们知道 HTTP 状态码 用来标识响应的状态,不恰当的状态码可能会影响 SEO,用户体验和可访问性,甚至产生不可恢复的线上问题。因为状态码不仅仅是客户端 AJAX 的返回值,它对 Web 系统架构有着重要的影响。但有些网站从不返回 4xx,用 3x...

https://harttle.land/2020/06/25/status-code-matters.html

Copy link

xuexb commented Aug 22, 2022

302 是临时重定向,每次访问时应该都会请求原始链接。如果原始链接存在了内容(返回了200),应该就会显示内容了。没有缓存吧?

这里是不是301?

Copy link
Owner

harttle commented Aug 22, 2022

查了下确实302是默认不缓存的,除非有设置cache control 或 expires。 感觉我观察到的应该是这种情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants