4 ms·
You're checking for a status 200, but what about sites that use 301 redirects or proxies?
by aroch 13y ago
You're checking for a status 200, but what about sites that use 301 redirects or proxies?
- oneeyedpigeon 13y agoIf you're using it to check your own site, presumably you know what the target of any 301 is beforehand, and can aim at that URL in the first place. Even if you're using a proper monitoring system, why force your server to handle twice the number of requests than it needs to?
- erichurkman 13y agoIt still blows me away when I go to a root domain and get redirected to example.com/home or something similar. Or sites that append slashes to all URLs, but the content links to the slash-less copy, forcing every click to hit the server twice. Gah!