Session Storage、Cache Storage

简介:

Session Storage

sessionStorage用于本地存储一个会话(session)的数据,这些数据只有在同一个会话中的页面才能访问并且当会话结束后数据也随之销毁(浏览器关闭)。因此sessionStorage不是一种持久化的本地存储,仅仅是会话级别的存储,操作与localStorage一样,就不细讲了。

Cache Storage

cacheStorage用来存储Response对象的,也就是说用来对HTTP响应做缓存的。而由于并没有形成标准,我也还有些困惑地方,就不举例子,下面是浏览器支持情况,所以应该也没有应用会使用。

转载:http://www.cnblogs.com/lovesong/p/5014086.html
目录
相关文章
|
10月前
|
存储 Web App开发 移动开发
📕Local Storage、Session Storage和Cache Storage之间的区别
你知道什么是Cache Storage、Local Storage和Session Storage吗?它们都是一些可以在你的浏览器里保存信息的介质,但是它们有什么不同呢?🤔
376 0
📕Local Storage、Session Storage和Cache Storage之间的区别
uiu
|
存储 对象存储 开发者
本地存储(Local Storage) 和 会话存储(Session Storage)
本地存储(Local Storage) 和 会话存储(Session Storage)
uiu
208 0
本地存储(Local Storage) 和 会话存储(Session Storage)
|
存储 Web App开发 移动开发
storage
在HTML5出现之前,如果开发者需要在客户端存储少量的数据,只能通过cookie来实现,但是cookie存在几个不足点: 每个域名下cookie的大小限制在4KB。 cookie会包含在每个http请求中,这样会导致发送重复的数据。 cookie在网络传输过程中没有加密,存在安全隐患。 在HTML5新增了Web storage功能,Web Storage官方建议为每个网站是5MB,能存储比cookie更多的数据,并且具有比cookie更强大的功能。Web Storage现在已经得到了Firefox、Opera、Chrome、Safari各主流浏览器的支持。
278 0
storage
|
存储 缓存
cache control 里 no-cache 和 no-store 的区别
cache control 里 no-cache 和 no-store 的区别
1005 0
|
存储 Web App开发 缓存
Client Side Cache 和 Server Side Cache 的区别
Client Side Cache 和 Server Side Cache 的区别
152 0
Client Side Cache 和 Server Side Cache 的区别
|
Java 关系型数据库 Oracle
Unable to read additional data from server sessionid
jenkins构建项目报错: Caused by: com.weibo.api.motan.exception.MotanFrameworkException: error_message: ClusterSupport No service urls for the refer:motan://192.
10397 0
|
NoSQL Redis Memcache
Redis vs. Memcached: In-Memory Data Storage Systems
Redis and Memcached are both in-memory data storage systems. Memcached is a high-performance distributed memory cache service, and Redis is an open-source key-value store.
1928 0
Redis vs. Memcached: In-Memory Data Storage Systems
|
关系型数据库 Oracle