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...
JRahm
Admin
Jul 14, 2008How about something like this:
when HTTP_RESPONSE {
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)) } {
COMPRESS::disable
}
}
I don't have compression module, so this is untested.
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