# CACHE\_RESPONSE to HTTP\_REQUEST

**URL:** <https://community.f5.com/t/cache-response-to-http-request/72061>\
**Category:** Technical Forums\
**Tags:** application-delivery\
**Created:** [April 6, 2023, 5:38pm UTC](https://community.f5.com/t/cache-response-to-http-request/72061 "2023-04-06T17:38:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hendel](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@Hendel](https://community.f5.com/u/Hendel)\
**Post date:** [April 6, 2023, 5:38pm UTC](https://community.f5.com/t/cache-response-to-http-request/72061/1 "2023-04-06T17:38:42Z")

</div>

(Edit: the event flow diagram I was looking at was wrong - HTTP\_REQUEST does trigger before CACHE\_RESPONSE and all this needed was a simple if-then CACHE::disable. If I could figure out how to delete this entirely…)

So this week’s cache headache…

I’m being asked to \*selectively\* either return a requested URI from the LTM cache, or if a specific request header is present allow that request to pass through to the webserver (because there is processing required at the webserver level).

If I understand the event flow correctly, once a URI has matched and CACHE\_RESPONSE has triggered, that request is effectively over - how can I get from there back to HTTP\_REQUEST?

[F5 Networks iRule Event Order - HTTP - Packet Pushers](https://packetpushers.net/irule-event-order-diagram-for-http/)

---

<div class="post-metadata">

**Author:** ![Daniel\_Wolf](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/daniel_wolf/32/1119_2.png) [@Daniel\_Wolf](https://community.f5.com/u/Daniel_Wolf)\
**Post date:** [April 7, 2023, 8:42am UTC](https://community.f5.com/t/cache-response-to-http-request/72061/2 "2023-04-07T08:42:15Z")

</div>

Hi&nbsp; @Hendel ,

glad to know you solved this by yourself.&nbsp;  
Maybe you want to bookmark this:&nbsp;[BIGIP\_Events\_Visio.pdf](https://cdn.f5.com/websites/devcentral.f5.com/downloads/BIGIP_Events_Visio.pdf)  
It’s a flowchart for the iRule event order.

KR  
Daniel
