Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Questions and Answers



Extend WAN or LAN to add "none"


We host a bunch of apps on a glassfish appserver and it appears the http-caching doesnt' work well with this. The http iApp template automatically creates a LAN or WAN based caching profile.
I thought I might be able to extend that to add "none" so there is no caching but there seems to be a little more code involved than I'm comfortable with; only having looked at this for 2 days.

Is this doable ? Looks like you're building an array of optimization profiles here :

set temp $http_optimization_profile_names
        set http_optimization_profile_names \{
        append http_optimization_profile_names $temp
        append http_optimization_profile_names \}

I'm ok with the tcp optimizations but I need to turn off the caching profile. The profile it creates is called appname_caching_profile.However, I cannot find any reference to "caching_profile" in the template.

Any pointers ?

3 Answer(s):

The references to "caching_profile" are in the #included app_utils, which is why you do not find them in the template. If you want to extend the template with a "None" choice, find the following http template statement:

set http_optimization_profile_names [tmsh::run_proc \
f5.app_utils:create_http_comp_accel_profiles $tmsh::app_name \
$::optimizations__lan_or_wan $::YES_ANSWER $use_wa $wa_app \

In order to disable caching in this instance, the call should be made with 2 "NO" answers, like this:

set http_optimization_profile_names [tmsh::run_proc \
f5.app_utils:create_http_comp_accel_profiles $tmsh::app_name \
$::optimizations__lan_or_wan $::NO_ANSWER $::NO_ANSWER $wa_app \

Calling the function in this manner creates the appropriate SSL and compression profiles without any caching.
For more on app_utils procedures, see https://devcentral.f5.com/wiki/iApp.app-utils-CLI-script-include.ashx.

This works. Thank you !
An early release of the new HTTP template has been posted at:

In this new template, caching may be turned off by selecting both "Do not use Web Acceleration" and "LAN" optimization.

Please note that this new version is in testing now, and will not be officially supported until released with its associated product version.

Your answer: