Using jquery's uploadify, a solution that will always crash on Google browsers

Source: Internet
Author: User

Using jquery's uploadify, a solution that will always crash on Google browsers
Because it is a java project. The solution is to add a parameter to the introduced js, so that the timestamp can be used to prevent caching and make every request. (This problem occurs because Google Chrome caches files.) <script type = "text/javascript" src = "../common/uploadify/jquery. uploadify. js? F = <% = System. currentTimeMillis () %> "> </script>: According to the post on stackoverflow, Asp. net Web From <script src = "/Resources/uploadify/jquery. uploadify3.1Fixed. js? Ver = <% = (new Random ()). next (0, 99999 ). toString () %> "type =" text/javascript "> </script> Asp. net MVC <script type = "text/javascript" src = @ Url. content ("~ /Content/uploadify/jquery. uploadify3.1Fixed. js? Ver = ") @ DateTime. Now. Ticks> </script> PHP <script src =" js/jquery. uploadify. min. js? Ver = <? Php echo rand ();?> "Type =" text/javascript "> </script>

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.