Forum Discussion
Craig_Freyman_1
Nimbostratus
Oct 17, 2005NO-Caching certain files with BIP
Trying to write an IRule to make client computers not cache certain file types. We can not have our client computers download any files that start with "slide" or "ps" into their temporary internet f...
Craig_Freyman_1
Nimbostratus
Oct 19, 2005Yessssssssss.
Thanks a million - that worked.
Here is the final rule.
when HTTP_REQUEST {
set foundmatch 0
if { ([HTTP::uri] contains ".swf") or ([HTTP::uri] contains "ps")} {
set foundmatch 1
}
}
when HTTP_RESPONSE {
if {$foundmatch == 1} {
HTTP::version "1.1"
HTTP::header replace Pragma no-cache
HTTP::header replace Cache-Control no-cache
HTTP::header replace Expires -1
HTTP::header remove Connection
HTTP::header insert Connection Close
}
}
Thanks again for all your help!
-Craig
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