mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Sunstone: add cache control header to requests. Enable revalidation after 10 minutes.
This commit is contained in:
parent
f90e6988d1
commit
c1d23e49af
@ -171,6 +171,7 @@ helpers do
|
||||
end
|
||||
|
||||
before do
|
||||
cache_control :private, :must_revalidate, :max_age => 600
|
||||
unless request.path=='/login' || request.path=='/'
|
||||
halt 401 unless authorized?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user