Browse files

update hosting server cache control header, thank @audreyt

  • Loading branch information...
1 parent 2960ba0 commit 43f99d48c86b99581810c8f200d37194eb10485c @tka tka committed Mar 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 hosting_server/config.ru
View
2 hosting_server/config.ru
@@ -64,7 +64,7 @@ class TheHoldApp
redirect_url = File.join( "/", current_project_path, path_info )
mime_type = Rack::Mime.mime_type(File.extname(redirect_url), "text/html")
- [200, {"Cache-Control" => "no-cache, no-store", 'Content-Type' => mime_type, 'X-Accel-Redirect' => redirect_url }, []]
+ [200, {"Cache-Control" => "public, must-revalidate, max-age=0, post-check=0, pre-check=30", 'Content-Type' => mime_type, 'X-Accel-Redirect' => redirect_url }, []]
end
def need_auth?(env, req, site)

0 comments on commit 43f99d4

Please sign in to comment.