cdn
1 TopicRewrite static content response for CDN network without modifying site code
Hello! I have a delicate problem to which I have not (yet) found a working solution. I would like to test out a CDN network without modifying the site code. So I thought this simple iRule would do it for rewriting /static content location: when HTTP_RESPONSE { HTTP::collect 1000000 } when HTTP_RESPONSE_DATA { log "Replacing payload with new data." HTTP::payload replace 0 [HTTP::payload length] [string map { cdn01.site.com/static} [HTTP::payload]] HTTP::release } Issue is that site use relative URL:s so the host never comes in the payload = no rewrite occur. Also tested creating a stream profile and added it to VIP to replace https://www.site.com/static with https://cdn01.site.com/static but it din't work. Any idea how to do this? Kind regards, Orjan371Views0likes3Comments