Question

I have a HttpHandler that is called whenever an image extension is accessed. This is what I have in the HttpHandler as a simple test:

public void ProcessRequest(HttpContext context)
{       
    context.Response.Write(context.Request.Url.ToString());
    context.Response.End();
}

According to Firebug, the first time the page is refreshed (Ctrl+F5), the URL is shown correctly in the response. However, if I refresh it again (F5), it'll repeat the URL 3 times:

First time:

http://server/image.jpg

Subsequent times:

http://server/image.jpghttp://server/image.jpghttp://server/image.jpg

Does anyone know why this is happening?

Was it helpful?

Solution

I tried your code and refresh page in different browsers and there is no repeating URL.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top