summaryrefslogtreecommitdiffstats
path: root/index.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.cgi b/index.cgi
index 63865f908..6635ef50a 100755
--- a/index.cgi
+++ b/index.cgi
@@ -27,8 +27,9 @@ my $vars = {};
# Yes, I really want to avoid two calls to the id method.
my $user_id = $user->id;
-# We only cache unauthenticated requests now, because invalidating is harder for logged in users.
-my $can_cache = $user_id == 0;
+# Disable content caching by browser because there will be different items on the global navigation
+# before and after signed in.
+my $can_cache = 0;
# And log out the user if requested. We do this first so that nothing
# else accidentally relies on the current login.