码迷,mamicode.com
首页 > 其他好文 > 详细

缓存踩坑之路

时间:2017-04-27 16:18:49      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:res   div   浏览器   设置   expires   content   script   html   缓存   

从两个角度看

一、客户端:

html缓存:

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">   

ajax缓存:

cache
要求为Boolean类型的参数,默认为true(当dataType为script时,默认为false),设置为false将不会从浏览器缓存中加载请求信息

二、服务端

 服务端肯定是有缓存的,设计CDN,redis,具体我还不知道

缓存踩坑之路

标签:res   div   浏览器   设置   expires   content   script   html   缓存   

原文地址:http://www.cnblogs.com/fexh/p/6774692.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!