Download caching breaks chrome

I am using the uploadify function. when I try to open the page with uploadify script, the page crashed. I have been using this for a long time. but now only i get the error.

This only happens in chrome. It works great in Firefox, Safari, and IE.

I searched on Google and found a solution similar to disabling cache in the browser (works). But this is not the best way to do this in a client browser. Is there a way to disable cache for a specific page using htaccess?

I tried the following in htaccess. but not used.

<Files jquery.uploadify.js>
    ExpiresDefault "access plus 0 seconds"
</Files>

Please suggest me to solve this problem.

+4
source share
2

, , ( URL ) ?ver=<?php echo rand(0,9999);?> .js , .

<script src="js/jquery.uploadify.min.js?ver=<?php echo rand(0,9999);?>" type="text/javascript"></script>

... >

UPDATE: (27-01-2015):

. . - uploadify, , . , . . .

setTimeout(function () {
    $("#uploadify_id").uploadify({})...
},0);

.

+23

@date ( "U" ) script src. :

js/jquery.uploadify.min.js?<?=@date("U")?>

.

+2

All Articles