This project is archived and is in readonly mode.

#707 ✓stale
Alex Chee

Add option to use request.format to determine caches_page extension

Reported by Alex Chee | July 25th, 2008 @ 06:00 PM | in 2.x

caches_page will treat automatically assume url with a period (.) on it to be a file extension. This can cause unexpected behavior with caching pages with a period in it (i.e. www.example.com/users/show/user....

Here's a patch and tests that would allow the option, :use_request_extension, to use format.request to determine the extension and it would not append to the cached_page if it already has the extension (i.e. www.example.com/users/user.name.....

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages