Forum Discussion
scott_sams_8256
Nimbostratus
Feb 20, 2009content tracking
we found an irule here by Kirk (thanks Kirk) that breaks content down by count. any genius out there that can take this and add total bytes for each category? our ecomm group wants to see the breakd...
scott_sams_8256
Nimbostratus
Feb 24, 2009have you ever seen this break a website? i have loaded it on two vips and both give broken images or no images and sometimes resets the browser connection. any ideas? did i mess something up here?
when HTTP_RESPONSE {
switch -glob [HTTP::header "Content-type"] {
"image/*" { STATS::incr "ContentType" "Images"
STATS::incr "ContentLength" "Images" [HTTP::payload length]
}
"text/html" {
STATS::incr "ContentType" "HTML"
STATS::incr "ContentLength" "HTML" [HTTP::payload length]
}
"text/css" { STATS::incr "ContentType" "Stylesheets" }
"*javascript" { STATS::incr "ContentType" "Scripts" }
"text/vbscript" { STATS::incr "ContentType" "Scripts" }
"application/x-shockwave-flash" { STATS::incr "ContentType" "Flash" }
"video/x-flv" { STATS::incr "ContentType" "FlashVideo" }
"default" { STATS::incr "ContentType" "Other" }
}
}
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
