views:

346

answers:

3

I am using swfupload to upload files on a website, the problem that every time the user open the page which contains the upload button, the page loads completely then the flash file start loading from scratch every time the user visit the page with no cache.

Is there a way to preload and cache .swf files in my asp.net page?

A: 

I found this page http://demo.swfupload.org/Documentation/#settingsobject which describes there how to setup the swfupload object parameters, and i found a very useful parameter: prevent_swf_caching : false, which made my object caches on the page, and also loading faster.

Amr ElGarhy
+1  A: 

Here is my solution for preloading swf files from JavaScript. Maybe this will also work for you: http://blog.sebastian-martens.de/2010/05/preload-assets-with-javascript-load-complete-callback-for-single-assets-include-swfflash/

Best regards!

sebastian
+1  A: 

Have you tried using a cache manifest?
It is made for offline web applications, but maybe could help also with your problem.

garph0