Advice for ServiceWorker implementation #256

Open
mnot opened this Issue Oct 31, 2016 · 1 comment

Projects

None yet

2 participants

@mnot
Contributor
mnot commented Oct 31, 2016

Perhaps we should add an appendix to help people do this?

@mnot mnot added the cache-digest label Oct 31, 2016
@sebdeckers

FYI/FWIW I've just implemented this spec via a service worker.

It would be nice if the spec clarified and defined the following. (I deduced it from @kazuho 's server and serviceworker implementations.)

  • HTTP header is called cache-digest. This is a very handy alternative to the HTTP2 frame which service workers can't access currently.
  • Base64 encoding must not be padded with = trailing.
  • String equivalent of the COMPLETE (0x2) flag for the HTTP header is complete and appended as ... base64 ...; complete (note the semicolon and white space)

Additionally more examples would be welcome, to aid implementors in validating their support. In particular the etags concatenation is unclear to me from the referenced spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment