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 | The cache feature is not used. |
dynamic | The file is reloaded only when it is updated on the server. If the file is not updated on the server, the local cache file is reused. |
session | When the app is running, the file is fetched from the server and only the local cache file is used until the app is closed. (If the file on the server is the same as the local cache file during app execution, the cached file is reused.) |
static | Once a file is downloaded from the server, the local cache file is used even when the app is restarted. (However, if the version information of the service group specified in the Type Definition changes, the file is reloaded.) |
Notes for WRE Execution
If the property value is set to static, cache files are saved in local storage. However, due to the limitations of web browser functionality, local storage cannot be used. Therefore, when used in a web browser, the property value operates as session even if it is set to static.
When the web browser is restarted or refreshed, all memory-based cache managed by the product is cleared. As a result, regardless of whether the property value is set to session, dynamic, or static, the behavior depends on the browser.
When used in a web browser, it is normal for the browser not to use the cache if the property value is set to none. - When using Firefox, there may be an issue where the browser cache is used, which is a bug in Firefox.
Notes for Execution in Nexacro Studio
When running NRE using the [Launch Project] or [Quick View] menu in Nexacro Studio, the Service-cachelevel value set in typedefinition is ignored and operates as none.
(The configured value of the cachelevel property is not changed.)
Differences in cachelevel application depending on the component or object.
When processing images in Nexacro, the behavior is designed to follow the cache settings of the browser used, considering image rendering-related features (e.g., size, stretch) and performance reasons.
(This behavior is independent of the cachelevel set in the project service group.)
When importing or exporting Excel files using ExcelImportObject or ExcelExportObject, the behavior always operates as none regardless of the specified cachelevel property value.
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";