remove CACHE_HTTP - client side page cache causes more problems than it solves

This commit is contained in:
Shish
2020-02-09 16:25:17 +00:00
parent 3c78b5685e
commit 641fd5a16f
4 changed files with 1 additions and 19 deletions

View File

@ -405,7 +405,7 @@ class UserPage extends Extension
{
global $page, $config;
$page->add_cookie("session", "", time() + 60 * 60 * 24 * $config->get_int('login_memory'), "/");
if (CACHE_HTTP || SPEED_HAX) {
if (SPEED_HAX) {
# to keep as few versions of content as possible,
# make cookies all-or-nothing
$page->add_cookie("user", "", time() + 60 * 60 * 24 * $config->get_int('login_memory'), "/");