I also had this problem. Like others affected, this can be caused by relative paths within your page.
I rewrote:
domain.com/article/12345/title-here
To become:
domain.com/article.aspx?ID=12345
The problem was that there were two images with relative paths:
EG. images/fb.jpg
images/tw.jpg
By writing the value to Request.RawUrl.ToString (), I could see that the browser was requesting the following images:
domain.com/article/12345/images/fb.jpg
domain.com/article/12345/images/tw.jpg
Although these files do not exist, the URL still complies with the redirect rule.
Thus, rewriting the url:
domain.com/article.aspx?ID=12345
This explains why my page loaded three times. Once for HTML and once for each image.
The src values of the image were changed to an absolute path, and the problem was resolved.
source
share