diff --git a/app.rb b/app.rb index 349b6ee..434f72b 100755 --- a/app.rb +++ b/app.rb @@ -44,6 +44,7 @@ def username end end + get '/' do if session[:username] erb :timeline @@ -53,6 +54,7 @@ def username end get '/login' do + response.headers['Cache-Control'] = 'public, max-age=31536000' erb :login_form end @@ -85,6 +87,7 @@ def username get '/user/profile' do + response.headers['Cache-Control'] = 'public, max-age=500' erb :profile end @@ -99,6 +102,7 @@ def username end get '/user/register' do + response.headers['Cache-Control'] = 'public, max-age=31536000' erb :register end