Skip to content
Browse files

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
  • Loading branch information...
1 parent 6f5a7b2 commit 6ef19fcd48bef1b70ae1b8a39da1fa9baae088cf @dhh dhh committed Feb 27, 2005
Showing with 6 additions and 1 deletion.
  1. +5 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/caching.rb
View
5 actionpack/CHANGELOG
@@ -1,3 +1,8 @@
+*SVN*
+
+* Fixed that caching the root would result in .html not index.html
+
+
*1.5.0* (24th February, 2005)
* Added Routing as a replacement for mod_rewrite pretty urls [Nicholas Seckar]. Read more in ActionController::Base.url_for and on http://manuals.rubyonrails.com/read/book/9
View
2 actionpack/lib/action_controller/caching.rb
@@ -90,7 +90,7 @@ def caches_page(*actions)
private
def page_cache_file(path)
- (path.empty? ? "/index" : path) + ".html"
+ ((path.empty? || path == "/") ? "/index" : path) + ".html"
end
def page_cache_path(path)

0 comments on commit 6ef19fc

Please sign in to comment.
Something went wrong with that request. Please try again.