Forum Discussion

t-roy's avatar
t-roy
Icon for Nimbostratus rankNimbostratus
Jan 05, 2012

WAM::disable iRule -- Why is webaccelerator still working??

While troubleshooting a problem I created an iRule to disable WAM for just certail URIs but I was still seeing a pv Etag using HTTPwatch. I then modified the iRule to perform one function:

 

when HTTP_REQUEST {

 

WAM::disable

 

}

 

 

There are no other iRules applied to the Virtual. I then invalidated content, cleared cache and loaded page again. PV etags are there and on 2nd request IBR appended PV code to end of content URLs so wam is definitely not disabled! If I use HTTP::class disable it seems to work, but I am looking for a solution that would only disable WAM and leave ASM in place.

 

2 Replies

  • Can you try calling it in HTTP_CLASS_SELECTED instead of HTTP_REQUEST?

    
    when HTTP_CLASS_SELECTED {
        WAM::disable
    }
    

    I'm guessing the class selection overrides WAM::disable called in HTTP_REQUEST.

    Aaron
  • t-roy's avatar
    t-roy
    Icon for Nimbostratus rankNimbostratus
    I guess that is why you are an MVP! Thanks hoolio, that did the trick.