debug
11-08-2002, 04:20 AM
Is it possible ?
![]() | View Full Version : How to prevent caching of swf files? debug 11-08-2002, 04:20 AM Is it possible ? sasha 11-08-2002, 08:22 AM try giving it random string $rnd = rand (); movie sr=flash.swf?r=$rnd debug 11-09-2002, 03:38 AM Thanks dTuesday 11-09-2002, 04:19 AM The .swf file will still cache. I don't think you can stop this. All the random string is going to do is insure that the .swf always gets reloaded (re-cached) each and every visit. Are you trying to secure your .swf against prying eyes? - D debug 11-09-2002, 06:36 AM Originally posted by dTuesday The .swf file will still cache. I don't think you can stop this. All the random string is going to do is insure that the .swf always gets reloaded (re-cached) each and every visit. Are you trying to secure your .swf against prying eyes? - D I try. But without flash server technologies, it will be difficult. But with this code: <?php header("Cache-Control: no-cache, must-revalidate, no-store\nPragma: no-cache\n"); header("Content-type: application/x-shockwave-flash"); readfile("test.swf"); ?> The swf is not caching but you can get it... Look at this http://www.webhostingtalk.com/showthread.php?s=&threadid=87263 dTuesday 11-11-2002, 04:03 PM No kidding. That works huh? I guess you learn something new everyday. Thnx, - D Bulldog 11-11-2002, 04:33 PM You can also just insert that code in the header via META tags if you don't dig PHP and/or your server doesn't allow it. debug 11-11-2002, 09:39 PM Originally posted by debug --- The swf is not caching but you can get it... Yes, it's working. Ref: http://www.flashfreaks.nl/showDetail.asp?TypeId=2&NewsId=3777 Test it. Copy and paste this url: h ttp://cgi-bin.spaceports.com/~joclar/set.php The swf is not caching but you can get it. |