By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,400 Members | 1,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,400 IT Pros & Developers. It's quick & easy.

XML and caching

P: n/a
If I use javascript to 'read' and XML file does that mean that the XML
file gets downloaded to the user's cache?

I'm building a quiz and I'd rather not have the answers too easily
available. I believe there's no real way to secure anything client side
with javascript so I'm just trying to keep the curious at bay.

Andrew Poulos
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I don't think it does with XmlHttpRequest and variants, but you may
want to check your cache afterwards.

Jul 23 '05 #2

P: n/a


Andrew Poulos wrote:
If I use javascript to 'read' and XML file does that mean that the XML
file gets downloaded to the user's cache?


Depending on the user's cache settings and the cache suggestions sent as
HTTP headers with the resource it is certainly possible that a resource
is cached, whether that is a HTML document, an image or an XML document
or a Java applet.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #3

P: n/a
On 19 Jan 2005 23:07:18 -0800, "Matthew Lock" <lo******@gmail.com>
wrote:
I don't think it does with XmlHttpRequest and variants,


IE's implementation makes no distinction on the cacheability of
resources got by it or any other method, they are as equally likely to
appear in the cache.

http://www.mnot.net/cache_docs/ and just ensure that the headers are
appropriate for not cached - remember also that the answers are easily
obtainable!

Jim.
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.