A
A
Ayk722014-12-11 22:58:59
Nginx
Ayk72, 2014-12-11 22:58:59

Expires, why is the date 1981?

Goodnight!
Found that my server response contains Expires with a strange date:
Expires: Thu, 19 Nov 1981 08:52:00 GMT
What does this mean? Is it bad that the date has passed and how to fix it? Apache + nginx server

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2014-12-13
@BuriK666

Usually such headers are thrown, so that they are probably not stored in the cache.

P
pumbo, 2017-07-12
@pumbo

This date is the birthday of one of the developers of the `session` extension for PHP ( https://stackoverflow.com/questions/8194481/why-is... )
This header (also `Pragma: no-cache`) is added automatically when the session is started (`session_start()`) to disable the cache. The date, in fact, is not important, the main thing is that it be from the past so that the cache is considered invalid.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question