Cache of App

To use the network effectively, rather than downloading the developed application program from the distribution server every time, cache technique is used.

Types of Caches

Types of the supported caches are as follows.

Type of Cache

Description

none

Does not use cache function.

dynamic

Receives only when files in the server are renewed.

Local cache files will be reused until the renewal.

session

Receives only once when the engine starts and only uses local cache files until the engine is shut down (if it is found that server files match local cache files when the engine begins, the local cache files will be reused)

static

Only local cache files are used once the files are downloaded from the server. (Re-download will be conducted only when the versions of the Services groups registered in TypeDefinition are changed.)

Although the "static" cache is designed to store files in a local memory, web browsers prevent the use of a local memory. Therefore, the static mode will be replaced with the session mode if you use a web browser.

If the cache mode is set to "none" in web browsers, a browser cache is supposed to be idle. However, it has been observed that Firefox uses a browser cache even under such circumstances. This case is a bug of Firefox rather than Nexacro.

https://bugzilla.mozilla.org/show_bug.cgi?id=1129500

In the process of re-starting or refreshing a web browser, all the memory caches managed by the platform will be cleared. In this case, browser behavior will prevail under the session, dynamic and static options.

When you execute an application in the NRE through Launch Project or Quick View of Nexacro Studio, caches will not be used regardless of the cachelevel settings in the Service group of TypeDefinition.

(This does not mean that the cachelevel settings are changed.)

Nexacro will follow the cache settings of web browsers when processing images due to image expression features (eg. size, stretch) and the platform's performance.

(This behavior is separate from the cachelevel settings in the Service group of TypeDefinition)

Nexacro applications will not use a cache when importing or exporting Excel files by using the ExcelImportObject or ExcelExportObject object. This behavior will apply regardless of the cachelevel settings in the Service group of TypeDefinition.

Cache Application Method

The cache setting can be modified using our tool and will be saved in the TypeDefinition file, as shown in the below picture presenting the TypeDefinition editor.

Callout

Description

1

Cache is only applied to the service group registered here

2

You can see here that a cache is applied here to all files in the directory called “./Base/”

3

Select the type of a cache

4

When the cache type is set to "static," you can download files again by re-setting the version of the service group.

nexacro.getEnvironment().services["Base"].cachelevel = "none";