-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hello, I work for an ad tech company and we have found some edge cases where the critical-ch restart does not play nicely with redirects between domains, or "wrapped domains". Unfortunately this is a very important and common use case in the ads world, including Google Ads.
Example Google Ads link: https://www.google.com/aclk?sa=L&ai=DChcSEwi-l7XdtPL9AhUR7u0KHQrmDQkYABAAGgJkZw&sig=AOD64_0hvmE49iyDD2sX3y9g3VMWQztshg&q&adurl&ved=2ahUKEwim3a_dtPL9AhXlRkEAHcuQDKgQ0Qx6BAgHEAE
Steps to repro
- open a new incognito window
- open network tab of developer tools
- paste the above link into search bar
- observe a 302 redirect to https://mettle.app.link/?%243p=a_google_adwords&%24always_deeplink=false&gclid=EAIaIQobChMIvpe13bTy_QIVEe7tCh0K5g0JEAAYASAAEgI6uPD_BwE&~ad_set_id=84381513814&~campaign_id=8309221182&~channel=g&~keyword=mettle&~placement=&$fallback_url=https://www.mettle.co.uk%3Fgclsrc%3Daw.ds%26&gclid=EAIaIQobChMIvpe13bTy_QIVEe7tCh0K5g0JEAAYASAAEgI6uPD_BwE
- The above request hits our servers, where we are returning an HTTP OK and a
critical-chheader requesting two critical client hints: platform-version and model.
Problem
Expected Result:
- Chrome restarts the request immediately, which should occur from the first request to google.com as per the spec and this old issue browser retries from the beginning of the multiple redirection with critical-ch #123
Actual Result:
- Chrome does not restart the request immediately and instead renders the 200 OK page.
- If you manually refresh the page, Chrome now sends the CH headers and the request redirects normally.
More details
I have not been able to reproduce this with other domains that 302 redirect to each other, it seems specific to Google Ads right now. I can also confirm that only one origin (our server) is requesting a critical hint retry, not multiple.
Please note that since this is a critical issue for us we are urgently working to mitigate this on our end, so this may not be reproducible in the wild after a few days. If this becomes an issue let me know and I can set up a test domain where we can reproduce this issue live.
I have also attached a bunch of screenshots from when I reproduced this issue. It is happening consistently (100% of the time) if the browser doesnt already have the critical hints cached (i.e. new incognito window or clear cache).
Thanks!






