We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.20.19. Server does not return Last-Modified HTTP header

Shared hosting servers return the HTTP header by default Last-Modified for static content (images, stylesheets, JS scripts). If you are faced with a situation in which the server does not return this header, you should check if the "SSI" in site settings:

If the option "SSI"Is enabled, the server will not return a header for content submitted by the Apache web server. For static content, the title will be returned anyway. Technology work SSI provided thanks to the Apache web server modules, which we use as a backend server on the hosting. IN official documentation reported that when using SSI, the header Last-Modified not returned because it is difficult to calculate the last modified time for dynamic content.

For dynamic content (dynamic pages, PHP scripts), this header must be passed independently. The following code can be used as an example:

$LastModified_unix = 1294844676; // время последнего изменения страницы
$LastModified = gmdate("D, d M Y H:i:s \G\M\T", $LastModified_unix);
$IfModifiedSince = false;
    $IfModifiedSince = strtotime(substr($_ENV['HTTP_IF_MODIFIED_SINCE'], 5)); 
    $IfModifiedSince = strtotime(substr($_SERVER['HTTP_IF_MODIFIED_SINCE'], 5));
if ($IfModifiedSince && $IfModifiedSince >= $LastModified_unix) {
    header($_SERVER['SERVER_PROTOCOL'] . ' 304 Not Modified');
header('Last-Modified: '. $LastModified);

You can check the work of the header and get additional recommendations on how to work with it on the website last-modified.com.


Title will not be returned for dynamic content if any module options are activated PageSpeed.