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...
dennypayne
Employee
Feb 12, 2007This rule is in the wiki, so it seems HTTP::header is valid within CACHE_REQUEST (although the wiki does not definitively call this out):
when CACHE_REQUEST {
if { [HTTP::header "Content-Length"] equals "0" } {
CACHE::expire
log local.tooshort
}
}
Is your logging working and what does it show?
Denny
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