mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Rel. #1314: Add no_store cache directive to UIs.
(cherry picked from commit 692b2904ac0d40d2bebc8f2c79ff0679d2af65ee)
This commit is contained in:
parent
f5d41fb4da
commit
1e1ee0ec4c
@ -129,6 +129,7 @@ set :cloud_auth, cloud_auth
|
||||
##############################################################################
|
||||
|
||||
before do
|
||||
cache_control :no_store
|
||||
unless request.path=='/ui/login' || request.path=='/ui'
|
||||
if !authorized?
|
||||
begin
|
||||
|
@ -190,6 +190,7 @@ helpers do
|
||||
end
|
||||
|
||||
before do
|
||||
cache_control :no_store
|
||||
unless request.path=='/login' || request.path=='/'
|
||||
|
||||
unless authorized?
|
||||
|
@ -171,7 +171,7 @@ helpers do
|
||||
end
|
||||
|
||||
before do
|
||||
cache_control :private, :must_revalidate
|
||||
cache_control :no_store
|
||||
unless request.path=='/login' || request.path=='/'
|
||||
halt 401 unless authorized?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user