Expires和Cache-control有什么区别:max-age? [英] What's the difference Expires and Cache-control:max-age?

查看:445
本文介绍了Expires和Cache-control有什么区别:max-age?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能告诉我Expires和Cache-control的区别:max-age?

Could you tell me the difference of Expires and Cache-control:max-age?

推荐答案

Expires HTTP / 1.0 规范中定义, Cache-Control HTTP / 1.1 规格。

Expires was defined in the HTTP/1.0 specifications, and Cache-Control in the HTTP/1.1 specifications.

我建议定义两者,以便您同时满足两者的需求 HTTP / 1.0 ,以及较新的。

I would suggest defining both so you cater to both, the older clients that only understand HTTP/1.0, and the newer ones.

这篇关于Expires和Cache-control有什么区别:max-age?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆