seiflotfy / compatipede

Automating Compatibility
Mozilla Public License 2.0
5 stars 3 forks source link

Don't track sub-resource redirects #5

Closed hallvors closed 11 years ago

hallvors commented 11 years ago

I get the below output for "redirects" - it seems to add information for every resource, including external scripts, img and stylesheets. We don't need this data - we should figure out a way to track redirects for the main URL only:

'redirects': {'ios': [u'http://video.ft.com/2836530119001/Typhoon-damage-exacerbated-by-poverty/Editors-Choice', u'http://media.ft.com/null.js', u'http://4235225.fls.doubleclick.net/activityi;src=4235225;type=homeo886;cat=ft-ho780;u7=NOR;u5=1;u1=;ord=1;num=8885692604817.45;~oref=http%3A%2F%2Fvideo.ft.com%2F2836530119001%2FTyphoon-damage-exacerbated-by-poverty%2FEditors-Choice?&_dc_ck=try', u'http://ib.adnxs.com/bounce?%2Fseg%3Fadd%3D1001722%26t%3D2', u'https://www.facebook.com/fr/u.php?p=391363987594223&m=0', u'http://beacon.krxd.net/usermatch.gif?partner=exelate', u'http://api.bizographics.com/v1/profile.redirect?api_key=595bae8dbc0c4c42b4544e688b10c002&callback_url=http%3A//beacon.krxd.net/data.gif%3F_kdpid%3D890a6228-04af-4630-85b6-0b49dee6157f%26pid%3Dbcbe1a6d-fa90-4db5-b4dc-424c69802310&3pc=true', u'http://beacon.krxd.net/data.gif?_kdpid=890a6228-04af-4630-85b6-0b49dee6157f&pid=bcbe1a6d-fa90-4db5-b4dc-424c69802310'], 'fos': [u'http://video.ft.com/2836530119001/Typhoon-damage-exacerbated-by-poverty/Editors-Choice', u'http://media.ft.com/null.js', u'http://4235225.fls.doubleclick.net/activityi;src=4235225;type=homeo886;cat=ft-ho780;u7=;u5=1;u1=;ord=1;num=9517158693633.973;~oref=http%3A%2F%2Fvideo.ft.com%2F2836530119001%2FTyphoon-damage-exacerbated-by-poverty%2FEditors-Choice?&_dc_ck=try', u'http://ib.adnxs.com/bounce?%2Fseg%3Fadd%3D1001722%26t%3D2', u'https://www.facebook.com/fr/u.php?p=391363987594223&m=0', u'http://api.bizographics.com/v1/profile.redirect?api_key=595bae8dbc0c4c42b4544e688b10c002&callback_url=http%3A//beacon.krxd.net/data.gif%3F_kdpid%3D890a6228-04af-4630-85b6-0b49dee6157f%26pid%3Dbcbe1a6d-fa90-4db5-b4dc-424c69802310&3pc=true', u'http://beacon.krxd.net/data.gif?_kdpid=890a6228-04af-4630-85b6-0b49dee6157f&pid=bcbe1a6d-fa90-4db5-b4dc-424c69802310', u'http://beacon.krxd.net/usermatch.gif?partner=exelate']