
express 和 cache-control 来判断是否命中强缓存,如果是,怎直接从缓存读取资源,不会发起请求。last-modified If-modified-since 和 etag if-none-match 判断资源是否命中协商缓存,如果命中, 不会 中断请求,服务器会将这个请求返回(304),但是不会返回资源,资源会从缓存中读取。<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" />