Expires Headers are rather simple in how they work. They tell the browser how long to store a file in the cache so subsequent page views and visits they don't have to download the file again. You are right to assume Expires Headers don't improve page speed for a first time visit as this visitor would have to download all the files for the first time. Using Expires Headers helps increase load times for returning visitors
when I run the code below and then I check headers in my browser the Expiration date really confuse me -> Expires:Thu, 19 Nov 1981 08:52:00 GMT<-, because I have created this file few minutes before. Could you tell me what does it mean?
<?php
session_cache_limiter('private');
session_start();
?>
Thanks!
The significance of this Date is the Sascha Schumann birthday who Developed this code.
You Can Change it 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);
}