为什么是“过期"?1981年? [英] Why is "Expires" 1981?

查看:22
本文介绍了为什么是“过期"?1981年?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 CRON 作业返回了 CRON 作业不起作用的错误.就在那里:

My CRON Job returned an error that CRON job did not work. In that this was there:

Set-Cookie: PHPSESSID=2t2drultihqci4em15nbfmeb63; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html

我想知道为什么 Expires 设置为1981".有什么意义?

I am wondering why is Expires set to "1981". What is the significance?

推荐答案

尝试禁用缓存.

日期是添加代码的开发者 Sascha Schumann 的生日.

The date is the birthday of the developer Sascha Schumann who added the code.

来自 session.c:

From session.c:

Authors: Sascha Schumann <sascha@schumann.cx> 
         Andrei Zmievski <andrei@php.net> 

// ...

CACHE_LIMITER_FUNC(private)
{
    ADD_HEADER("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
    CACHE_LIMITER(private_no_expire)(TSRMLS_C);
}

这篇关于为什么是“过期"?1981年?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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