This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "quickfw".
The branch, master has been updated
via 10085ec50ec624a84b40207c63bee123da08eee5 (commit)
from 07e385c27f06e54d6091567d8dc8743861727777 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 10085ec50ec624a84b40207c63bee123da08eee5
Author: Ivan Borzenkov <iva...@li...>
Date: Sat Aug 21 17:07:12 2010 +0400
Функция nocache
diff --git a/lib/utils.php b/lib/utils.php
index 3ee2f25..c6cc6c4 100644
--- a/lib/utils.php
+++ b/lib/utils.php
@@ -314,6 +314,17 @@ function preg($pattern, $subject, $all = true)
}
/**
+ * Устанавливает заголовки запрещающие кешировать
+ */
+function nocache()
+{
+ header ("Expires: Mon, 26 Jul 1990 05:00:00 GMT");
+ header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
+ header ("Cache-Control: no-cache, must-revalidate");
+ header ("Pragma: no-cache");
+}
+
+/**
* Функции ескейпинга в нужной кодировке
*
* @param string $s Исходная строка
-----------------------------------------------------------------------
Summary of changes:
lib/utils.php | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
hooks/post-receive
--
quickfw
|