From 87ef401dca734fe4fa9e234f3f4ad0b996d42b05 Mon Sep 17 00:00:00 2001 From: GearoidDC Date: Fri, 17 Feb 2023 15:15:13 +0000 Subject: [PATCH] Set Etag to nil instead of "" --- lib/auto_session_timeout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auto_session_timeout.rb b/lib/auto_session_timeout.rb index aa9bc91..69ef0a6 100644 --- a/lib/auto_session_timeout.rb +++ b/lib/auto_session_timeout.rb @@ -26,7 +26,7 @@ def auto_session_timeout_actions end def render_session_status - response.headers["Etag"] = "" # clear etags to prevent caching + response.headers["Etag"] = nil # clear etags to prevent caching render plain: !!current_user, status: 200 end