开发者

Want to disable flash caching?

I have a .swf flash gallery that loads pics from a XML file

the probelm is when I modify the XML the modifications do not reflect on the flash till I delete the browsing cache from the browser

I tried to disable caching using code like this

Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.AddHeader("Pragma","no-cache");
Response.Expires = -1;

but not work开发者_C百科ing

is there any workaround for this ?

thanks


You could add a parameter to you XML file request. Something like "pictures.xml?dummy=[timestamp]". In that case, your browser thinks you are requesting a new file.

Hope this will help. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜