1
0
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:
Hector Sanjuan 2012-04-19 12:36:27 +02:00
parent f90e6988d1
commit c1d23e49af

View File

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