mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Zone:
* added customFlags to infoBox Misc: * moved no-cache header to separate utility function * pages may now require the user to be authed as he can be authed AND have no userGroups simultaneously * minor changes to announcements
This commit is contained in:
@@ -1715,6 +1715,15 @@ class Util
|
||||
|
||||
return [$result, $jsGlobals];
|
||||
}
|
||||
|
||||
public static function sendNoCacheHeader()
|
||||
{
|
||||
header('Expires: Sat, 01 Jan 2000 01:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user