This Question is Assumed Answered

1 "correct" answer available (5 pts) 14 "helpful" answers available (3 pts)
2 Replies Last post: Aug 15, 2008 12:58 PM by wbardwell

What gets downloaded along with start.curl ?

Aug 7, 2008 12:26 AM

Click to view URPradhan's profile Level 7 URPradhan 141 posts since
Mar 6, 2008
Hi

May be simple question but want to understand the flow of a curl application.

Suppose a Curl application has been hosted at a site, which is using ...
1. source files (like *.scurl),
2. packages (like *.pcurl),
3. external packages (like CDK, WSDK) and
4. images (an "image" folder)

As per my understanding, those components (files, directories, packages, delegate-to) which are mentioned in the application's manifest.mcurl file, will be downloaded to the client's RTE (correct me if wrong). So, if its true then what happens when next time user runs that application later. Means will those components will be cached at client's m/c or again a fresh copy of all will be downloaded ?

WSDK's size is about approx 256KB and CDK's size is 1.59MB (deployed versions of both).
So will these components (approx 2MB) will be downloaded to client's RTE every time ?

Thank you
Click to view Duke's profile Curl Duke 154 posts since
Oct 17, 2007
1. Re: What gets downloaded along with start.curl ? Aug 7, 2008 9:24 AM
The Curl RTE uses various kinds of caching that reduce the time to reload applets. If you look at the Curl Control Panel, you can see there is a setting for "persistent package caching" which is enabled by default. Curl packages are compiled to native code, and that compiled code is cached so that if you have an applet that loads that identical package again and there is no change in the package sources (see the index entry "caching > persistent") then the package does not need to be recompiled.

For files that are not part of packages, they can be reread from the browser WinInet HTTP cache.

If you are dynamically reading from some HTTP data, you can control the caching by using with-file-caching-style.
Click to view wbardwell's profile Curl wbardwell 46 posts since
Oct 31, 2007
2. Re: What gets downloaded along with start.curl ? Aug 15, 2008 12:58 PM

Files get downloaded when they are used. Just listing them in the manifest will not cause them to be downloaded. In additional the curl-access.txt and license file will be downloaded when any other HTTP access is attempted. Packages will be cached if package caching is enabled (which it is by default), this means that the compiled version of the package will be stored on local disk until the cache is full, and then the oldest packages will be discarded. Images are cached in memory, but only for the duration of the applet's run. In addition the low-level HTTP layer will cache files in the same way as a web browser would. with-file-caching-style and the RTE control panel resynchronize settings, and the applets resynchronize settings will override the default HTTP layer caching. On Windows operating systems the IE/wininet control panel caching settings will effect the caching of all HTTP content.