Forum Discussion
cory_hase_69275
Nimbostratus
Jul 14, 2008Compression during a M-F 8am-5pm CST window
Can any one tell me if I can enable compression for a VIP via an Irule that will compress for periods of time, based on the local time of the LTM. Like compress duing the day 8-5 else do not compress...
Darrell_Kesti_5
Jul 25, 2008Historic F5 Account
Seeing an error when trying to save this in the iRule editor
when CLIENT_ACCEPTED {
set time_r [split [clock format [clock seconds] -format {%H:%M} ] " "]
set time_f [expr [expr [lindex $time_r 0]*100] + [lindex $time_r 1]]
if { not(($time_f >= 0800) && ($time_f <= 1700)) } {
set compression "off"
}
}
when HTTP_RESPONSE {
if { $compression eq "off" } {
COMPRESS::disable
}
}
line 3: [use curly braces to avoid double substitution] [[expr [lindex $time_r 0]*100]]
line 3: [use curly braces to avoid double substitution] [[lindex $time_r 0]*100]
line 4: [parse error: PARSE badNumber 187 {expected integer but got "0800" (looks like invalid octal number)}] [{ not(($time_f >= 0800) && ($time_f <= 1700)) }]
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects