There are several factors to consider when making decisions on the configuration settings for a given application or customer environment. These include:
Security: The connections between the Application Server and the AVB (platform) and the Application Server and the server hosting the secured resources must be secure.
Persistent Connections: If you use persistent connections, you save the time spent on parsing the URL and resolving the host name using DNS.
Note:
Configurations that use load balancers or any mechanism that changes host name to IP address mapping of application servers may not lend themselves to using persistent connections. So make sure persistent connections work properly in your environment before utilizing this option.
Dynamic URLs: Pages that use dynamic URLs should not be cached.
Cache Size: The browser cache size should be configured to ensure all cacheable files from an application (or set of applications) can be stored in the cache. The number and size of cacheable resources will determine the correct size of the cache. The default is set to 40 megabytes and can be configured through the EPM for EP or by editing the defaultsx.cfg file on IR(where x is the VXI instance number). This may need to be adjusted if you are running multiple applications, if the length of the prompts is measured in minutes, or if there are an unusually large number of prompts, pages and grammars in the application. The quickest way to size it is to run through the application (or set of applications that will coreside) a few times and cover as many application execution paths as possible, and then check the cache folder size.
Expiration frequency: If feasible, a 24–hour or longer expiration timeframe is recommended. The AVB will still use the cached copy if it has exceeded its expiration time by no more than maxstale seconds. A shorter expiration timeframe will cause more conditional GETs to be performed by AVB given the same maxage or maxstale settings. Use the HTTP Expires header to set the expiration time.
When a load balancer is used it is essential to keep ETags and last modified records the same across all servers, otherwise AVB performs many unnecessary cache updates. The AVB generates f-Match/If-None-Match headers while refreshing a resource with an ETag that was previously retrieved.
The POST method should be used in cases where caching is not useful to prevent unnecessary overhead.
Understand the default and tunable parameters for your application server. For example, Tomcat does not set the HTTP Expires header for static files such as audio files and grammar files. The absence of the HTTP Expires header will force the browser to do a conditional get to the server on every access to the static file. It is possible to use Tomcat in combination with an http server, such as Apache or IIS, which then allows the server to generate the HTTP Expires header setting.