jquery uploadify file uploads lead to Google browser (Chrome) crash crash

Source: Internet
Author: User

Solutions

According to StackOverflow on the post, to the JS file with random parameters, deceive the Chrome browser to prevent caching, so that each time the request to initiate.

The code is as follows Copy Code

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 (0,9999);? > "type=" Text/javascript "></script>

This problem occurs because Google Browser will cache files caused by, so the solution is to give JS after a random number of the solution.

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.