Forum Discussion

Craig_Freyman_1's avatar
Craig_Freyman_1
Icon for Nimbostratus rankNimbostratus
Oct 17, 2005

NO-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!