服务工作者如何处理cookie?

时间:2017-02-16 22:19:09

标签: caching cookies service-worker

我知道Service Worker doesn't have access to cookies,但是当从SW caches提供网页时,代码是如何代理的?如果我使cookie无效或在页面外更改其值,然后尝试从页面内的JavaScript中读取它,我会获得旧值还是新值?

如果响应中有Set-Cookie:标头,那么它会存储在缓存中吗?每次从缓存中读取响应时,是否会重播该标头并生效?

MDN documentation for the Cache interface says nothing about cookiesW3C SW spec也没有。

0 个答案:

没有答案
相关问题