Click to See Complete Forum and Search --> : access later


havey
02-07-2005, 03:09 PM
does the server store a cache of the called page, being called like so:

Dim objXMLHTTP, xml
Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
xml.Open "GET", "http://www.page.com/page.asp", False
xml.Send
strRetVal = xml.responseText

I need the information gathered in the above call for many pages, but don't want to call it on every page, was wondering if the server caches this page cause its using the server component? waht the be way to accomplish this?

thanks

russell
02-09-2005, 12:18 AM
if www.page.com/page.asp is on a remote site, then you are best served inserting it into a databse or saving it as a file on your server -- assuming that the responseText won't change.

If it is local, then the way u r doing it is probably fine.

The asp page requested via the ServerXMLHTTP object is not going to be cached localy.

If there are many calls to the object, the object will stay in memory, making subsequent calls a bit faster