Forum Discussion
Kevin_Stewart
Nov 05, 2013Employee
You can do this with the HTTP::respond and iFiles commands. Take a look at the iFiles wiki page for a good example:
https://devcentral.f5.com/wiki/irules.iFile.ashx
And here's another example:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/test.js" } {
HTTP::respond 200 content [ifile get test_js] "Content-Type" "application/javascript"
}
}