diff options
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index cde5b4f1e9..e8200f6ded 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -90,7 +90,9 @@ module ActionController #:nodoc: private def page_cache_file(path) - ((path.empty? || path == "/") ? "/index" : path) + ".html" + name = ((path.empty? || path == "/") ? "/index" : path) + name << '.html' unless path.split('/').last.include? '.' + return name end def page_cache_path(path) |