Amr Elgarhy
Amr Elgarhy

Reputation: 68912

How to preload .swf file and cache it for future page requests?

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?

Upvotes: 4

Views: 2647

Answers (2)

garph0
garph0

Reputation: 1708

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

Upvotes: 1

Amr Elgarhy
Amr Elgarhy

Reputation: 68912

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.

Upvotes: 0

Related Questions