I am requesting an html file from the server A where the server A downloads it from another server(B) and send it to the original client. This html file has images embedded in img tags like <img src="abc.png">
. In order to download those images successfully in the successive requests, I need to add a prefix to the src path like "prefix/abc.png"
once server A receives the successive request for the image.
Now my problem is, is there a way I can figure out whether a request is for the page or for a successive request for a resource like image or script so I can add the prefix to the path properly?