Forum Discussion
Hannes_Rapp
Nimbostratus
Since you mentioned you have other iRules.
https://devcentral.f5.com/wiki/irules.HTTP__header.ashx
HTTP::header insert ...
If this command is executed after issuing the HTTP::redirect or HTTP::respond command, the F5 will become confused, generate an "Operation Not Supported" TCL error and reset the connection.
Do you issue redirects or responses from the other iRules?
Hannes_Rapp
May 18, 2016Nimbostratus
After each redirect or response statement in the other iRules, use 'event disable HTTP_RESPONSE' function. If you structure the iRule well, you can get away by specifying it just once. You can also merge your iRules so the use of this function can be avoided. This kind of change can take your app down, make sure you test in QA. Also check out Stanislas answer, he's right that you will not need to use HSTS iRule on HTTP VS. If possible, create a dedicated HTTPS VS (if you don't have yet), and use the HSTS iRule there.