There is an exception for OPTIONS HTTP requests. This was a requirement in our environment, because there was an inbound application that could not accept cookies. The saving grace is that they told me they were using OPTIONS instead of GET, so I was able to create an exception to bypass the iRule. You'll want to keep this in mind in case you run into similar scenarios.
Feedback or suggestions are welcome.
How to use this snippet:
The iRule MUST be in last position of order. For some reason it doesn't work otherwise.
This site was damaging the code. You can download it as txt.zip or retrieve it from my first comment.