Re: [ServiceWorker] Add cookie accessor/setter methods? (#707)

I think we should shoot for something async-map-like, which https://github.com/slightlyoff/ServiceWorker/issues/707#issuecomment-110280181 diverges from.

Agreed it should be secure-only. Probably should be same-origin cookies only as well.

Using dates in APIs is always tricky, especially since they are mutable. (Not just a question of "can you set `.expires = ...`, but also what happens when you do `.expires.setDay(...)`.) I think the convention is to use timestamps instead. (ISO strings seem nicer?) I am not sure what the convention for accepting them is; maybe anything the Date constructor accepts?

Fuller proposal to follow.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/707#issuecomment-110443374

Received on Tuesday, 9 June 2015 17:42:18 UTC