Upgrade to Pro — share decks privately, control downloads, hide ads and more …

web over packaging

1ff811939fd0923df8321ec6d8bf9d4b?s=47 Jxck
June 13, 2018

web over packaging

Web over Packaging
at #chromejp 2018/6/13

1ff811939fd0923df8321ec6d8bf9d4b?s=128

Jxck

June 13, 2018
Tweet

Transcript

  1. None
  2. None
  3. • ◦ ◦ • ◦ ◦ • ◦ ◦

  4. • • • • • •

  5. https://google.com/amp/path to https://your-own-origin/path

  6. None
  7. None
  8. in https://labs.jxck.io click https://labs.jxck.io/~~~/mozaic.sxg display as https://mozaic.fm click actual URL

    application/signed-exchange;v=b0
  9. ⛓ + certificate chain in cbor

  10. actual: https://labs.jxck.io/~~~/mozaic.sgx display: https://mozaic.fm/

  11. None
  12. • • ◦ • ◦ • ◦

  13. webbundle = [ ; in UTF-8. magic: h'F0 9F 8C

    90 F0 9F 93 A6', section-offsets: bytes .cbor {* ($section-name .within tstr) => [ offset: uint, length: uint] }, sections: [* $section ], length: bytes .size 8, ; Big-endian number of bytes in the bundle. ] $section-name /= "index" / "manifest" / "critical" / "responses" $section /= index / manifest / critical / responses responses = [*response]
  14. Index for Response of index.html offset 100 length 200 Index

    for Response of script.js offset 300 length 200 ... ... HTTP Header + index.html body HTTP Header + script.js body ... 100 300
  15. • • • • • •

  16. None
  17. None
  18. • ◦ ◦ • ◦ ◦ • ◦ • ◦

    ◦ • ◦ ◦
  19. • ◦ ◦ • ◦ ◦ • ◦

  20. • ◦ • ◦ • ◦ • ◦ • ◦

    • ◦ • ◦
  21. None