Closed jordinl closed 4 years ago
The issue is that some sites do a JavaScript redirect instead of a 302. But, why don't you run against our current landscapes and see if that still matters.
@dankohn Some of these javascript redirects are not that interesting... Not sure why we care that foo.com
redirects to foo.com/en
. Also, with javascript we might not be able to catch a 404 page.
I ran the checks with the curl command I pasted above and it seems that it actually gets more accurate results compared against the daily ran for CNCF. Note that there might be some discrepancies because some sites my redirect or block based on IP.
We use puppeteer to check that all homepage urls work and to see if there are redirects. This process is extremely slow, I think it takes about 3 hours on the CNCF landscape. We could use curl, something like the code below takes under a minute: