Forum Discussion

Lior_Cohen_2771's avatar
Lior_Cohen_2771
Icon for Nimbostratus rankNimbostratus
Aug 28, 2018

TCL error: /Common/"irul_name" - Out of bounds (line 1) invoked from within

Hello is thare any way to Debbug this Error in the LocalTraffic LOG?

TCL error: /Common/CACHE_RESPONSE - Out of bounds (line 1) invoked from within "CACHE::header replace X-Cache "HIT F5-BB""

Here is the irule:


when HTTP_RESPONSE {
        HTTP::header insert X-Cache "MISS F5-BB"
}


when HTTP_RESPONSE_RELEASE {  
    if {[string length [HTTP::header "Cache-Control"]]} {
        set new_cache [string map -nocase {"public" "private"} [HTTP::header "Cache-Control"]]
        HTTP::header replace Cache-Control $new_cache
    }
}

when CACHE_RESPONSE {
        CACHE::header replace X-Cache "HIT F5-BB"
        if {[string length [CACHE::header "Cache-Control"]]} {
            set new_cache [string map -nocase {"public" "private"} [CACHE::header "Cache-Control"]]
CACHE::header replace Cache-Control $new_cache
        }
}

the rule seem to be working fine, i'm getting the correct headers, but i'm getting a bunch of dose errors