如图所示,发现预加载图片后,重复调用图片的时候触发了重复的图片资源( 确定图片资源路径是一致的 )加载。
在手机端没有发现这样的情况,但是在 chrome 上很容易出现类似的情况,每次重复加载的图片资源不相同。
重复请求一两次后,便不会再重复请求。
请问是什么原因导致了这样的情况出现?
html 头部
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no, date=no, address=no, email=no, url=no">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
stackoverflow 上相同问题:https://stackoverflow.com/que...
相关分类