Link Search Menu Expand Document

NetObject.Cache Method

Explanation Download the CRS file from the WEB server and cache it.

It works the same as the Get method , except that it doesn't run the downloaded CRS. See the Get method for details.

If "Do not use cache" is set in the Biz / Browser environment settings, it will not be cached. Also, if the cache prohibition attribute is added to the response header from the server or the time stamp is unknown, it will not be cached.
Call format obj.Cache (URL [, param1 [, param2 [, ...]]])
Return value None
Arguments String URL URL of the CRS file
Same as the URL of the Get method
Object param Parameters to be added to the request
Same as the param of Get method.

A general WEB server adds a cache prohibition attribute to the response header of a POST request with parameters. When using param , it is necessary to consider the behavior of such a WEB server.
Exception CRS-331 Communication error
Same as the Get method exception.
Example of use
Function LoadCache() {
    //.Cache("Form1.crs");
    //.Cache("Form2.crs");
    //.Cache("Form3.crs");
}
Related item Get method
Root.CacheSetup method
Root.CacheMode property