Forum Discussion
Gea-Suan_Lin_34
Nimbostratus
Oct 13, 2009HTTP_RESPONSE not fired every time when OneConnect enabled
I write an iRule to let F5 to insert "Cache-Control" header when it sees 3xx/4xx/5xx response:
when HTTP_RESPONSE {
if {[HTTP::status] >= 300 and
not [HTTP::header exists "Cache-Control"]} {
HTTP::header insert "Cache-Control" "must-revalidate, no-cache, no-store"
}
}
But I notice that, when OneConnect enabled, not every 4xx request will be inserted "Cache-Control".
I also tried to simplify the problem to:
when HTTP_RESPONSE {
HTTP::header insert "Cache-Control" "must-revalidate, no-cache, no-store"
}
In theory, I would see Cache-Control for every request, but it didn't. I only see 30~35 reqs for 100 requests.
System is BIG-IP 9.4.7 Build 330.0 Hotfix HF2.
6 Replies
- hoolio
Cirrostratus
That's a bit odd... do you have RAM cache enabled on the VIP by chance? If so, you'd see the CACHE_RESPONSE event triggered. If that's not the case, I'd suggest contacting F5 Support to troubleshoot this. If you end up doing this can you reply back with what you find?
Thanks,
Aaron - Colin_Walker_12Historic F5 AccountAgreed, that sounds pretty odd. I can't think of a reason, even with Oneconnect on, that you wouldn't see the appropriate header in ever response. Is something upstream nuking headers by chance? If not, definitely worth a support case.
Colin - Gea-Suan_Lin_34
Nimbostratus
Thanks for your reply, I didn't enable RAM cache. I'll contact F5 Support to find out the problem. - hoolio
Cirrostratus
Can you reply back once you get more info on this?
Thanks,
Aaron - Gea-Suan_Lin_34
Nimbostratus
Hello, I've contacted F5 support team to solve this issue, and this issue looks like SOL10653. I duplicate an OneConnect profile and set virtual server to use it, and then everything looks fine now.
Thanks, - hoolio
Cirrostratus
Thanks for the info. That's a slightly esoteric bug. Glad you were able to get a workaround.
Aaron
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
