Forum Discussion
hmsp_105493
Nimbostratus
Dec 19, 2007STREAM profiles & expressions
Hi all..
I have been doing a few tests to get my head around STREAMing, so set up a simple html page with the word 'Red', written in red 'FF0000'.
With the following iRule, I can change the word and colour to green when going through BIG-IP
when HTTP_RESPONSE {
STREAM::expression "@red@green@@ff0000@00ff00@"
STREAM::enable
}
This works fine, and from the same PC I can browse the BIG-IP VIP and get green, and the web-server direct and get red.
However, when I change the iRule (to blue, for example), I have to make sure the cache has been cleared in the browser to see the effect..
I believe this is because the browser checks the modified date of the source html file (which has not changed), so the browser uses it's cached copy and then doesn't reflect the changes..
I'm guessing there must be some way to get the BIG-IP to change the response, so the client thinks the file has been changed in the last 5 minutes or so? Or is there something else to try?
Obviously not a huge problem, as in production I can't imagine the iRule needing to change often at all, but something i'd like to work out..
- Colin_Walker_12Historic F5 AccountYou could certainly have the iRule send back a custom header telling the client to re-check the file. That would be pretty straight-forward using the HTTP::header insert or HTTP::header replace command.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects