bleeping
coder
Projects
JavaScript
TypeScript
Python
C++
C#
Go
Fe-interview: [html] 第224天 关于缓存你了解多少?
Created on 25 Nov 2019
·
2
Comments
·
Source:
haizlin/fe-interview
第224天 关于缓存你了解多少?
我也要出题
html
Source
All 2 comments
cookie:判断用户是否登录过网站,以便实现下次自动登录或记住密码;保存事件信息等。
localstorage:敏感账号一次性登录;单页面用的较多(sessionStorage 可以保证打开页面时 sessionStorage 的数据为空)。
sessionstorage:常用于长期登录(判断用户是否已登录),适合长期保存在本地的数据。
HTTP缓存机制
强缓存:浏览器直接从本地缓存获取数据,不与服务器进行交互
协商缓存:浏览器发送请求到服务器,服务器判断是否可以使用本地缓存
Was this page helpful?
0
/ 5 -
0
ratings
Related issues
[vue] prop验证的type类型有哪几种?
haizhilin2013
·
3
Comments
[vue] 怎么缓存当前打开的路由组件,缓存后想更新当前组件怎么办呢?
haizhilin2013
·
3
Comments
[vue] vue要做权限管理该怎么做?如果控制到按钮级别的权限怎么做?
haizhilin2013
·
3
Comments
[vue] 说说你对vue组件的设计原则的理解
haizhilin2013
·
3
Comments
[html] 第39天 title与h1、b与strong、i与em的区别分别是什么?
haizhilin2013
·
3
Comments