本文介绍了为什么“过期"? 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?

推荐答案

这是尝试禁用缓存的尝试.

It's an attempt to disable caching.

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

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

从session.c:

From session.c:

Authors: Sascha Schumann <[email protected]> 
         Andrei Zmievski <[email protected]> 

// ...

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

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

10-19 13:31