This project is archived and is in readonly mode.
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
-
Alex Chee July 25th, 2008 @ 10:00 PM
- no changes were found...
-
Pratik July 26th, 2008 @ 03:30 PM
- Title changed from [patch] Add option to use request.format to determine caches_page extension to Add option to use request.format to determine caches_page extension
- Tag changed from actionpack, patch to actionpack, caches_page, patch
-
josh October 28th, 2008 @ 04:34 PM
- State changed from new to stale
Staling out, please reopen if this is still a problem.
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>