Forum Discussion

FishNiX_29746's avatar
FishNiX_29746
Icon for Nimbostratus rankNimbostratus
Oct 22, 2009

Insert header for content returned from ramcache?

 

Is it possible in 9.4.8 to insert a response header into content returned from the cache?

 

 

when CACHE_RESPONSE {

 

HTTP::header insert Via F5-Cache

 

}

 

}'

 

 

 

or something?

 

 

 

2 Replies

  •  

    I get these errors:

     

    Oct 22 15:04:18 tmm tmm[1895]: 01220001:3: TCL error: set_xcache_header - Out of bounds (line 1) invoked from within "HTTP::header insert Via F5-Cache"

     

    Oct 22 15:04:18 tmm tmm[1895]: 01220001:3: TCL error: set_xcache_header - Out of bounds (line 1) invoked from within "HTTP::header insert Via F5-Cache"

     

    Oct 22 15:04:19 tmm tmm[1895]: 01220001:3: TCL error: set_xcache_header - Out of bounds (line 1) invoked from within "HTTP::header insert Via F5-Cache"

     

    Oct 22 15:04:19 tmm tmm[1895]: 01220001:3: TCL error: set_xcache_header - Out of bounds (line 1) invoked from within "HTTP::header insert Via F5-Cache"

     

    Oct 22 15:04:19 tmm tmm[1895]: 01220001:3: TCL error: set_xcache_header - Out of bounds (line 1) invoked from within "HTTP::header insert Via F5-Cache"

     

    Oct 22 15:04:19 tmm tmm[1895]: 01220001:3: TCL error: set_xcache_header - Out of bounds (line 1) invoked from within "HTTP::header insert Via F5-Cache"

     

  • You could have posted the error the first time :D. The wiki page for CACHE_RESPONSE shows HTTP::header should work. But per this old post (Click here), it looks like you should try CACHE::header instead:

     

     

    CACHE::header insert Via F5-Cache

     

     

    You might also try opening a case with F5 Support about the TCL error. Either the iRule validation in the GUI/CLI/iControl should prevent you from using HTTP::header in CACHE_RESPONSE, or it should work during runtime.

     

     

    Aaron