F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

neeeewbie's avatar
Mar 28, 2024
Solved

CACHE::disable iRule doesn't seem to be working.

Hi guys  I need help !    Our customer wants to disable caching for GET requests, but the CACHE::disable iRule doesn't seem to be working. Do you have any suggestions?   thank you
  • neeeewbie's avatar
    Mar 31, 2024

    thanks for your information 

    but below irule does not work,, f5 device can not send traffic to server after applied below irule

    idk the reason

     

    when HTTP_REQUEST priority 500 {

         if { [HTTP::header exist "Content-Type"] }  {
            if { [HTTP::header exist "Cookie"]  } { 
                CACHE::disable
                }
            CACHE::enable
            }        
    }

    when HTTP_RESPONSE priority 600 {

       if { [HTTP::status] == 200 }{
               if { [HTTP::header exist "Cookie"] } { 
                CACHE::disable
          }
          CACHE::enable
        }
    }