From c87265f674038dd0bdbcde0db1fec38cbc62d44d Mon Sep 17 00:00:00 2001 From: Kload Date: Wed, 16 Oct 2013 18:00:51 +0200 Subject: [PATCH] Avoid caching problems --- access.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/access.lua b/access.lua index b9f7025..c2fb785 100644 --- a/access.lua +++ b/access.lua @@ -148,11 +148,13 @@ end function display_login_form () local args = ngx.req.get_uri_args() + ngx.req.set_header("Cache-Control", "no-cache") -- Redirected from another domain if args.r then local redirect_url = ngx.decode_base64(args.r) set_redirect_cookie(redirect_url) + ngx.header["Cache-Control"] = "no-cache" return redirect(portal_url) end