InnO
Sep 16, 2014Nimbostratus
Question about If-Modified-Since HTTP header
Hi all,
I am running in something I cannot explain at this time, so any help would be greatly appreciated. Seems I do not understand the HTTP headers If-Modified-Since and If-None-Match 🙂
I initially wanted to get the values of these headers, but since that was void, I just decided to check if they simply exist and log the result. Seems they don't. But when checking the http capture whether in tcpdump or Fiddler, I can see those 2 headers are present...
What am I missing about the behavior of these headers ?
Here is my very basic iRule
when HTTP_REQUEST {
if {[HTTP::header exists "If-Modified-Since"] } {
set ims 100
set inm 100
}
else {
set ims 0
set inm 0
}
log -noname local0. "My IMS est : $ims and my INM : $inm"
}
and the data capture : Thanks !