With a Web container, you can control the cache of the static contents by setting an upper limit for the memory size used for the cache in the Web application, and an upper limit for the file size of the static contents to be cached.
The cache of the static contents is controlled by the following two methods:
- Controlling the cache of static contents in the Web container
This is the method to control the cache of static contents in the Web container. In the Web container, set an upper-limit value for the memory size to be cached in the Web application, and also an upper-limit value for the file size of the static contents allowed to be cached. The set upper-limit value of the memory size used in the cache of Web application unit, and the upper-limit value of the file size of static contents is applied to all the Web applications deployed on the Web container.
- Controlling the cache of static contents in the Web application
This is the method to control the cache of static contents in the Web application. In the Web application, set an upper-limit value for the memory size to be cached, and an upper-limit value for the file size allowed to be cached.
If control in Web application as well as control in Web container are set, the setting for control in Web application is given priority.
Note that if the memory size to be cached in the Web application unit exceeds the upper-limit value, or the file size of static contents exceeds the upper-limit value, caching is not performed on the memory, but a response is returned from the file system to the browser each time.
Specify the settings for caching the static contents at the following locations, for each range:
- Controlling the cache of static contents in the Web container
Specify as a property of the J2EE server.
- Controlling the cache of static contents in the Web application
Set as an attribute (property) of Web application.
- Note
- The functionality for caching the static contents is disabled, when the reload functionality of J2EE application is enabled.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.