drupal_page_header
includes/bootstrap.inc, строка 628
- Версии
- 5 – 6
drupal_page_header()
Set HTTP headers in preparation for a page response.
Authenticated users are always given a 'no-cache'
header, and will
fetch a fresh page on every request. This prevents authenticated
users seeing locally cached pages that show them as logged out.
See also
Код
<?php
function drupal_page_header() {
header("Expires: Sun, 19 Nov 1978 05:00:00 GMT");
header("Last-Modified: ". gmdate("D, d M Y H:i:s") ." GMT");
header("Cache-Control: store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", FALSE);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии