X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=396b11689f7a66208342ca21b33c8549ba341559;hb=cd7f0c894589ddf7a3d3b2deaedfc055fbb42dd5;hp=60ea624337ec29859571c86f27d06dd3c861a69b;hpb=123416d979e44c2cf3403fffc23fe99c8d6d80d5;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 60ea624..396b116 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -48,6 +48,7 @@ define('CHAT_ILL_TIME', 6); define('SESS_LEN', 13); define('STREAM_TIMEOUT', 60); +/* FIXME: move to sac-a-push .phh */ define('EXPIRE_TIME_RD', 180); define('EXPIRE_TIME_SMAMMA', 360); define('EXPIRE_TIME_WAG', 10); @@ -292,6 +293,13 @@ function mop_flush() flush(); } +function force_no_cache(&$header_out) +{ + $header_out['Pragma'] = 'no-cache, must-revalidate'; + $header_out['Cache-Control'] = 'no-cache'; + $header_out['Expires'] = '-1'; +} + function file_lock($fname, $is_exclusive) { if (($res = @fopen($fname, "r+")) == FALSE) { @@ -2170,6 +2178,8 @@ class Room { { printf("NEW_SOCKET (root): %d\n", intval($new_socket)); + force_no_cache($header_out); + switch ($path) { case "": case "index.php":