Expires:thu, Nov 1981 08:52:00 GMT

Source: Internet
Author: User
Tags current time

It's a little familiar.

This is the expires information in the HTTP response headers.

This time is not right. Isn't it a little strange.

Find an interesting answer:

It ' s an attempt to disable caching.
The date is the birthday of the developer Sascha Schumann who added the code.
File:session.c
Authors:sascha Schumann < sascha@schumann.cx >
Andrei Zmievski < andrei@php.net >
...
Cache_limiter_func (Private)
{
Add_header ("Expires:thu, Nov 1981 08:52:00 GMT");
Cache_limiter (Private_no_expire) (Tsrmls_c);
}

This means: "In a site using PHP, if the developer does not set Expires information, then the default information is used, and the default value is" Expires:thu, Nov 1981 08:52:00 GMT ", which is the birthday of the engineer who developed the code. ~

Well, we're not against this kind of thing. But sometimes some security companies may think this is a problem when they scan your site.

How to deal with it if it is to be solved.

It's easy to set a expires in your code.

Set the expires time to the current time + 10 minutes

$ts = gmdate ("D, D M Y h:i:s", Times () + 600). "GMT";
Header ("Expires: $ts");

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.