From 6ef19fcd48bef1b70ae1b8a39da1fa9baae088cf Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 27 Feb 2005 17:02:09 +0000 Subject: Fixed that caching the root would result in .html not index.html git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/caching.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index c51e0f4d70..cde5b4f1e9 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -90,7 +90,7 @@ module ActionController #:nodoc: private def page_cache_file(path) - (path.empty? ? "/index" : path) + ".html" + ((path.empty? || path == "/") ? "/index" : path) + ".html" end def page_cache_path(path) -- cgit v1.2.3