Forum Discussion
Wil_Schultz_101
Nimbostratus
Feb 12, 2007How can I grab an HTTP header on CACHE_REQUEST?
I'm trying to grab [HTTP::header "Content-Length"] to use during CACHE_REQUEST so I can make sure the BigIP does not cache blank pages. I've tried to set a global variable during HTTP::Response and no...
spark_86682
Feb 15, 2007Historic F5 Account
Wow. That's totally weird. From the timestamps it's clear that the response that was logged (and hence excluded from the cache) was not the same one as the one that was cached. Since the hostname is the same, do you have any other rule that might be doing a CACHE::enable on the same virtual? Presumably you'd have checked for that, though. The only other thing I can think of is if somehow there was no content-length header (e.g. via "Connection: close" or chunked content) for a response then the iRule check wouldn't fire.
How about a debugging iRule like:
rule debugcache {
when HTTP_RESPONSE {
set size [HTTP::header "Content-Length"]
if { [HTTP::uri] contains "/blank.htm" } {
log "Got blank.html of apparent length $size"
}
}
}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
