mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Avoid caching problems
This commit is contained in:
parent
d9814203c1
commit
c87265f674
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue