class method
self.page_cache_extension
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.1.12Available in: v3.0.20 v3.1.12
Most Rails requests do not have an extension, such as /weblog/new. In these cases, the page caching mechanism will add one in order to make it easy for the cached files to be picked up properly by the web server. By default, this cache extension is .html. If you want something else, like .php or .shtml, just set Base.page_cache_extension. In cases where a request already has an extension, such as .xml or .rss, page caching will not add an extension. This allows it to work well with RESTful apps.
Source
# File actionpack/lib/action_controller/caching/pages.rb, line 55
config_accessor :page_cache_extension
Defined in actionpack/lib/action_controller/caching/pages.rb line 55
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Caching::Pages