How to update the image cache in iframe in IE-php Tutorial

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.