How can I update the image cache in iframe in IE? I show an image in iframe, and then upload the image to overwrite the image (the original image has been overwritten, the two images have the same name), but why is the original image displayed on the submitted page. Ask the solution, very grateful ------ solution -------------------- the first kind of prohibit Cache & lt; METAHTTP-EQUIV & quot; PRAGM could you tell me how to update the image cache in iframe under IE
I show an image in iframe, and then upload the image to overwrite the image (the original image has been overwritten, and the two images have the same name ), why is the original image displayed on the submitted page. I am very grateful for the solution.
------ Solution --------------------
First, disable caching.
Js control reupdate
Script
// This allows for timely updates.
Document. all ("ImgSrc"). src = "csdn.gif? Id = "+ (new Date (). toString ();
Script
Test it by yourself. it should be okay if the file header output can be controlled by js, but it has not been tested.