Forum Discussion

stucky101_88485's avatar
stucky101_88485
Icon for Nimbostratus rankNimbostratus
Aug 09, 2012

Extend WAN or LAN to add "none"

Hi

 

 

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 ?

 

  • Fred_Slater_856's avatar
    Fred_Slater_856
    Historic F5 Account
    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 \

     

    $::ssl_encryption_questions__offload_ssl

     

     

    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 \

     

    $::ssl_encryption_questions__offload_ssl

     

     

    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.

     

     

    Cheers,

     

    -Fred
  • Fred_Slater_856's avatar
    Fred_Slater_856
    Historic F5 Account
    An early release of the new HTTP template has been posted at:

     

    https://devcentral.f5.com/wiki/iApp.New-HTTP-alpha.ashx

     

     

    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.

     

    Cheers,

     

    -Fred