I am experimenting with some PHP and HTML, and I would like to know whether it is possible for the browser to have multiple Send a separate request for images that have the same file name. For example, if I have
& lt; Img src = "showimg.php? Id = 1234" & gt; Write 3 different times, is it possible to send 3 different times requests for the browser, thus every time a different image is being? It appears that the browser recognizes that the file has the same name and then the image works with the cache. I have come to this conclusion using a session variable which is going to showimg.php every time. If the ID is different then the counter becomes 3 times the increase but if all three IDs are the same then the counter only increases once, no matter how many times I request the image. Since I'm not an author on the browser, I was hoping someone could provide a solid answer.
Edit: My question is how can I load a different image to the browser same id I know that it is unique ID I can just be thinking that this is possible.
Thanks to those who have answered so far.
I think you have the only option that to create unique "file name" something random in the image Adding the string otherwise the browser browser (properly) assumes that the same URL files are the same image. From one perspective to another, they should be
& lt; Img src = "showimg.php? Id = 1234 and rand = & lt ;? php echo uniqid () ;? & gt; & gt;
Comments
Post a Comment