对于谷歌的“过期”有什么意义吗?日期是 1990 年 1 月 1 日星期五 00:00:00 GMT?
我正在查看我的 GMail 帐户的响应标头,并注意到日期 Fri, 01 Jan 1990 00:00:00 GMT 一遍又一遍地显示为“Expires”值。我想这只是一个简单的常量,以确保浏览器了解它已经过了新鲜日期。但那个特定日期有什么意义吗?人们可能很容易使用 2000 年、1970 年或其他任何时间的同一日期。某人的生日或大学毕业日期或任何类似的个人信息并不够奇怪。也许这只是任意的,但我想知道是否有人有一个很好的解释为什么选择这个特定的日期。
I was looking at the response headers for my GMail account and noticed that the date Fri, 01 Jan 1990 00:00:00 GMT shows up as the value for "Expires" over and over again. I suppose this is just an easy constant to make sure the browser understands this is past its freshness date. But is there any significance to that particular date? One might as easily have used the same date in 2000, or 1970, or whatever. It's not quirky enough to be someone's birthday or date of college graduation or anything personal like that. Maybe it's just arbitrary, but I was wondering if someone has a good explanation why that particular date was chosen.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有意义,过去的任何日期都可以完成这项工作,有人只是选择了任意过去的日期。这样您的浏览器就不会缓存该页面:)
您的浏览器会理解“这很好,直到...”哦,在这种情况下,我每次都需要再次获取它。
No significance, any date in the past will do the job, someone just picked an arbitrary past date. This is so your browser won't cache the page :)
Your browser understands "this is good until..." oh, I need to fetch it again, every time in this case.