Forum Discussion
big_nerd_9769
Nimbostratus
Nov 27, 2012iRule to force usage of Content Distribution [Modify HTML Out]
Hello,
I am still very very new at iRules, so thank you in advance for any help you can give me.
I am attemping to put an iRule in place to force the usage of our content distributio...
big_nerd_9769
Nimbostratus
Nov 27, 2012Hello! Thank you for the swift response...
1) Presently, you are redirecting based on request URI yes?
Yes - if the request URI ends with an image extension, it will redirect
2) You'd rather rewrite responses to avoid the redirect yes?
Yes - unless I can find some confirmation all browsers (including mobile browsers) will follow redirect requests for images.. I have not been able to confirm nor deny this
3) Is there a direct correlation between the request URI and the CDN URI? So would www.site.com/images/test.jpg be located at cdn.site.com/images/test.jpg? If not, this is going to be a very long iRule =]
Yes, it is literally www.site.com/blah.jpg == cdn.site.com/blah.jpg, so on and so forth.
The CDN provider uses a cname (cdn.site.com) and just correlates that to an origin source which has images in the exact same path.
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