![]() |
Ability to override individual URLs in a test - Printable Version +- WebPagetest Forums (https://www.webpagetest.org/forums) +-- Forum: WebPagetest (/forumdisplay.php?fid=7) +--- Forum: Feature Suggestions (/forumdisplay.php?fid=9) +--- Thread: Ability to override individual URLs in a test (/showthread.php?tid=11058) |
Ability to override individual URLs in a test - epeters1111 - 04-28-2012 02:40 AM I'm trying to evaluate the impact of caching certain resources in my site on a CDN. For this, it would be really useful to be able to override individual URLs on a test page. For instance, something like this: Code: overrideUrl http://foo.com/foo http://bar.com/bar Any time the test would request the "foo.com" URL, it would substitute the "bar.com" URL. RE: Ability to override individual URLs in a test - Retailgeek - 07-20-2012 05:08 AM There are some override commands (SetDnsName, overrideHostUrl) supported by the script interface. https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/scripting#TOC-setDns If the asset has the same filename on the CDN as the Origin server, you could use setDnsName to test with and without the CDN. SetDnsName ExampleCDN.com ExampleOrigin.com Would cause http://www.examplecdn.com/cool.jpg to get loaded from http://www.exampleorigin.com/cool.jpg during the test. There have been a couple of recent articles about testing CDNs that you might find useful. http://www.jonathanklein.net/2012/07/measuring-cdn-performance-with.html http://blog.catchpoint.com/2012/07/11/how-to-test-benchmark-cdns/ |