X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=396b11689f7a66208342ca21b33c8549ba341559;hb=4ff899747ae6f7c742890b45c08677f2655fc3e9;hp=b52c3330bd5e2eb8c1212fb3ee30b3cef314c83b;hpb=0e94d4cdb397ece2f2f23920aeb8ce97586a0da4;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index b52c333..396b116 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -293,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) { @@ -2171,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":