greengerong / Prerender_asp_mvc

Prerende client for asp.net mvc
http://prerender.io/
86 stars 39 forks source link

add custom timeout and numberOfRetries to webrequest #21

Closed mdpolky closed 8 years ago

thoop commented 8 years ago

I'm assuming WebException is thrown when there is a 404 (or other non-200 status code). You don't want to retry if there's a non 200 status code. You want to send the response back to the crawler so they can update their index.

Retrying is unnecessary because crawlers handle timeouts in their own way and retrying isn't going to help, especially if you are retrying on a non-200 status code.

I don't think this provides any benefit unless you are seeing issues with the Prerender server?