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 files.
I have tried the following however the files are still caching into the Temp internet files.
when HTTP_REQUEST {
if {[HTTP::uri] contains "slide."} {
set foundmatch 1
}
if {[HTTP::uri] contains "ps."} {
set foundmatch 1
}
else {
set foundmatch 0
}
}
when HTTP_RESPONSE {
if {$foundmatch == 1} {
HTTP::header replace Cache-Control no-cache
HTTP::header replace Pragma no-cache
}
}
Any ideas out there???
Thanks!
14 Replies
Sort By
- Craig_Freyman_1
Nimbostratus
I'll use that as a last resort. Still strange that when Apache interacts with HTTP 1.0 clients the client computers obey the Pragma: no-cache but when using BigIP they don't obey. - Colin_Walker_12Historic F5 AccountIt looks like this is because BIG-IP is responding with an HTTP 1.0 connection to the client. You should be able to replace this info in the packet and try to convince the client to connect with an HTTP version 1.1 connection. If the negotiation is succesful, it should obey the no-cache header as normal.
HTTP::version "1.1"
- bl0ndie_127134Historic F5 AccountThe cache control headers are correct according to RFC 1945 (HTTP/1.0 spec) so your client is probably the one at fault. Lets try setting the HTTP version to HTTP/1.1 on the response and see what happens.
when HTTP_RESPONSE { HTTP::version "1.1" }
- Craig_Freyman_1
Nimbostratus
Yessssssssss.
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