1
0
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:
Hector Sanjuan 2012-07-05 12:35:35 +02:00 committed by Ruben S. Montero
parent f5d41fb4da
commit 1e1ee0ec4c
3 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -190,6 +190,7 @@ helpers do
end
before do
cache_control :no_store
unless request.path=='/login' || request.path=='/'
unless authorized?

View File

@ -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?