henrycjchen / blog

henry's blog
https://henrycjchen.github.io/blog/docs/
0 stars 0 forks source link

max-age 和 expires 哪个优先 #4

Open henrycjchen opened 4 years ago

henrycjchen commented 4 years ago

max-age:表示当前资源的可用时长,即多久后过期,单位为秒 expires:表示当前资源的准确过期时间

由于以下两点因素,浏览器规定优先级 max-age 高于 expires