title: How to maintain good PageSpeed Rank with external services
body: <p>So I'm grappling with brutal ranking degradation due to external services used in client sites. I've pretty much done everything I feel I have control over, including resolving render-blocking problems.</p>
  
  <p>But one thing that runs like a red thread through all sites is that YSlow and PageSpeed get stuck at rankings in the D range at best because of browser caching and redirect advisories for external resources, including googles own analytics.js.</p>
  
  <p>Now I know that some of these resources might be able to be moved locally, but often, especially in the case of redirect-chains - it seems like a daunting task.</p>
  
  <p>Here's an example for an <strong>insane</strong> redirect chain:</p>
  
  <pre><code>https://d.adroll.com/cm/b/out
  https://x.bidswitch.net/sync?dsp_id=44&amp;user_id=NWY2MDZmY2M1NGUxZGVhZTE1NmZmNjgzYjI2ZjlmMGM
  https://x.bidswitch.net/ul_cb/sync?dsp_id=44&amp;user_id=NWY2MDZmY2M1NGUxZGVhZTE1NmZmNjgzYjI2ZjlmMGM
  https://t.brand-server.com/match_back?bidder_id=4&amp;external_user_id=da20ac56-bf05-4acc-8df2-2e92ceb9f4da
  https://t.brand-server.com/ul_cb/match_back?bidder_id=4&amp;external_user_id=da20ac56-bf05-4acc-8df2-2e92ceb9f4da
  https://match.adsrvr.org/track/cmf/generic?ttd_pid=centro&amp;ttd_tpi=1
  https://match.adsrvr.org/track/cmb/generic?ttd_pid=centro&amp;ttd_tpi=1
  https://t.brand-server.com/match_back?bidder_id=1&amp;external_user_id=09d385a1-bd5e-4dc0-84fb-1afdf83f1892
  https://secure.adnxs.com/getuid?https://t.brand-server.com/match_back?bidder_id=3&amp;external_user_id=$UID
  https://t.brand-server.com/match_back?bidder_id=3&amp;external_user_id=8261031581142479988
  https://pixel-a.sitescout.com/dmp/pixelSync?nid=35
  https://bcp.crwdcntrl.net/map/c=1389/tp=STSC/tpid=8157edd8-d80d-432e-bf0b-47234df4942c?https%3A%2F%2Fsu.addthis.com%2Fred%2Fusync%3Fpid%3D11185%26puid%3D8157edd8-d80d-432e-bf0b-47234df4942c%26url%3Dhttps%253A%252F%252Ft.brand-server.com%252Fmatch_back%253Fbidder_id%253D5%2526external_user_id%253D8157edd8-d80d-432e-bf0b-47234df4942c
  https://bcp.crwdcntrl.net/map/ct=y/c=1389/tp=STSC/tpid=8157edd8-d80d-432e-bf0b-47234df4942c?https%3A%2F%2Fsu.addthis.com%2Fred%2Fusync%3Fpid%3D11185%26puid%3D8157edd8-d80d-432e-bf0b-47234df4942c%26url%3Dhttps%253A%252F%252Ft.brand-server.com%252Fmatch_back%253Fbidder_id%253D5%2526external_user_id%253D8157edd8-d80d-432e-bf0b-47234df4942c
  https://su.addthis.com/red/usync?pid=11185&amp;puid=8157edd8-d80d-432e-bf0b-47234df4942c&amp;url=https%3A%2F%2Ft.brand-server.com%2Fmatch_back%3Fbidder_id%3D5%26external_user_id%3D8157edd8-d80d-432e-bf0b-47234df4942c
  https://t.brand-server.com/match_back?bidder_id=5&amp;external_user_id=8157edd8-d80d-432e-bf0b-47234df4942c
  </code></pre>
  
  <p>Here's some caching/expires headers warnings:</p>
  
  <pre><code>https://fonts.googleapis.com/css?family=Oswald:400,700
  http://cdn.searchspring.net/ajax_search/sites/742gv8/js/742gv8.js
  http://cdn.searchspring.net/ajax_search/js/searchspring-catalog.min.js
  http://cdn.searchspring.net/autocomplete/searchspring-autocomplete.min.js
  http://www.googleadservices.com/pagead/conversion.js
  https://seal-stlouis.bbb.org/seals/blue-seal-200-42-miniaturemarketllc-310240951.png
  https://fonts.googleapis.com/css?family=Open+Sans:600,700,400,300
  https://trustlogo.com/trustlogo/javascript/trustlogo.js
  https://connect.facebook.net/en_US/fbevents.js
  http://www.googletagmanager.com/gtm.js?id=GTM-5RMBM2
  http://tag.perfectaudience.com/serve/51dc7c34a84900f9d3000002.js
  http://a.adroll.com/j/roundtrip.js
  https://www.facebook.com/tr/?id=1860590510836052&amp;ev=PageView&amp;dl=http%3A%2F%2Fwww.miniaturemarket.com%2F&amp;rl=&amp;if=false&amp;ts=1480458368216&amp;v=2.5.0
  https://www.facebook.com/tr/?id=1610476729247227&amp;ev=PageView&amp;dl=http%3A%2F%2Fwww.miniaturemarket.com%2F&amp;rl=&amp;if=false&amp;ts=1480458368220&amp;v=2.5.0
  https://trustlogo.com/trustlogo/images/popup/seal_bg.gif
  https://trustlogo.com/trustlogo/images/popup/warranty_level.gif
  https://www.google-analytics.com/analytics.js
  https://pixel-geo.prfct.co/tagjs?check_cookie=1&amp;a_id=3045&amp;source=js_tag
  https://www.google-analytics.com/plugins/ua/ec.js
  https://s.adroll.com/pixel/P3MVZ4FMVNG67LVRKHALEV/CSFUSWFLCFBNTBB2REH2EP/V42TOE4T75HOHDQUCEXVPV.js
  http://pixel-geo.prfct.co/seg/?add=842026,3277058&amp;source=js_tag&amp;a_id=3045
  https://www.facebook.com/tr?id=1610476729247227&amp;ev=ViewContent&amp;cd[rtb_id]=3277058&amp;noscript=1
  https://www.facebook.com/tr?id=1610476729247227&amp;ev=ViewContent&amp;cd[rtb_id]=842026&amp;noscript=1
  https://www.facebook.com/tr/?id=1638890983076166&amp;ev=PageView&amp;dl=http%3A%2F%2Fwww.miniaturemarket.com%2F&amp;rl=&amp;if=false&amp;ts=1480458369206&amp;cd[segment_eid]=%5B%22V42TOE4T75HOHDQUCEXVPV%22%5D&amp;v=2.5.0
  https://analytics.twitter.com/i/adsct?p_id=48571&amp;p_user_id=pa_HjjM3Ntt5wLVRxjwi
  https://image2.pubmatic.com/AdServer/Pug?vcode=bz0yJnR5cGU9MSZjb2RlPTMyNDMmdGw9MTI5NjAw&amp;piggybackCookie=uid:pa_HjjM3Ntt5wLVRxjwi
  https://www.facebook.com/fr/u.php?p=292157157590619&amp;m=pa_HjjM3Ntt5wLVRxjwi
  https://www.facebook.com/fr/u.php?t=2592000&amp;p=443937282305007&amp;m=NWY2MDZmY2M1NGUxZGVhZTE1NmZmNjgzYjI2ZjlmMGM
  https://analytics.twitter.com/i/adsct?p_user_id=NWY2MDZmY2M1NGUxZGVhZTE1NmZmNjgzYjI2ZjlmMGM&amp;p_id=823423
  https://pixel-geo.prfct.co/cb?partnerId=goo
  https://d.adroll.com/cm/g/in?google_ula=1535926,0
  https://pixel.rubiconproject.com/tap.php?cookie_redirect=1&amp;v=194538&amp;nid=3644&amp;put=NWY2MDZmY2M1NGUxZGVhZTE1NmZmNjgzYjI2ZjlmMGM&amp;expires=365
  https://us-u.openx.net/w/1.0/sd?cc=1&amp;id=537114372&amp;val=pa_HjjM3Ntt5wLVRxjwi
  https://dsum-sec.casalemedia.com/rum?cm_dsp_id=105&amp;external_user_id=NWY2MDZmY2M1NGUxZGVhZTE1NmZmNjgzYjI2ZjlmMGM&amp;expiration=1511994369&amp;C=1
  https://us-u.openx.net/w/1.0/sd?cc=1&amp;id=537103138&amp;val=5f606fcc54e1deae156ff683b26f9f0c
  https://pixel.rubiconproject.com/tap.php?cookie_redirect=1&amp;v=189868&amp;nid=4106&amp;expires=30&amp;put=pa_HjjM3Ntt5wLVRxjwi
  https://idsync.rlcdn.com/377928.gif?partner_uid=5f606fcc54e1deae156ff683b26f9f0c&amp;redirect=1
  https://pixel.prfct.co/seg/?add=695885
  https://pixel.prfct.co/cb?partnerId=mrin
  http://ib.adnxs.com/mapuid?member=364&amp;user=11465672070136222257
  https://t.brand-server.com/match_back?bidder_id=5&amp;external_user_id=8157edd8-d80d-432e-bf0b-47234df4942c
  </code></pre>
  
  <p>It would seem that being able to do something about this would drastically improve the score as it's about the only thing left to fix. So my question is - what can be done about it?</p>
  
  <p>Has anyone tried solutions like rewriting the urls after source generate through a proxy that <em>covers</em> the redirect chain or fetches the resources and passes them through with modified headers?</p>
  
  <p>Is it at all worth it or are these page scores just to be ignored? </p>
  
  <p>What are plausible alterntives?</p>
  
  <p>Apologies for a loaded question...</p>