开发者

Getting static data for Flash app with JSON or XML - caching or not?

I've flash app and i've static data (like ~18.0KB) for it which aren't changed often so I was wondering how to better get them. The static data may be in XML or JSON. One of my ideas was to put the static data in .js file within a function which would return them in JSON list and the other one was to return them in XML (as I like to work with XML more in Flash) somehow. But I'm not sure if it possible to put XML stuff in JS file to return them when function is called.. Or is XML pages also cached in browser and I will get the same performance result which I would get with 开发者_如何学Gocached JS files?


Put the data in an XML file at server; it will be cached like any other file.

When you change the data, user would have to clear cache (Ctrl+F5) to load the modified version - this is true for any type of file.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜