8 comments

[ 4.8 ms ] story [ 29.8 ms ] thread
I opened the js fiddle and I can't see any Service Workers running in chrome inspector. Also, since that seems to be an actual image, how does the JS get executed? I see a Link header, but why would something get executed because of it?

Edit: Oh, it's running indeed ( chrome://inspect/#service-workers )

IIRC, service workers allow you to intercept all requests made by the page, for the purposes of implementing offline caching.
Right, but you need to execute some JS to set them up, and the example only shows img tag.
No, the Link-tag with rel=serviceworker on the image response installs the service worker. Not clear (to me) if that's part of the origin trial or not.
That seems to be the case, it seems really weird that it's allowed though, especially from a different domain.
I can't believe its delivered via headers

    Link:</sw?728997763>; rel="serviceworker"; scope="/646166204"
    Origin-Trial:AglMWHYLtMNT8FVZp9u368r0HZPKh7Pjfm7WYEyHwKz4zwaSznv682Bckrz903mz54CVZQACD5ZlSrLpuh8CKQIAAABYeyJvcmlnaW4iOiAiaHR0cHM6Ly90cnVlZmFjdG9yLmlvOjQ0MyIsICJmZWF0dXJlIjogIkZvcmVpZ25GZXRjaCIsICJleHBpcnkiOiAxNDg0OTM2NzI3fQ==
Scary stuff, I havent had a chance to play with any of this stuff yet...

https://developers.google.com/web/updates/2016/09/foreign-fe...

Can chrome revoke your origin trial token?