Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Add option to use request.format to determine caches_page extension

#707

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.....

Reported by Alex Chee · July 25th, 2008 @ 06:00 PM

State: stale
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Alex Chee
  2. Pratik
    Pratik
    • 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

    July 26th, 2008 @ 03:30 PM

  3. josh
    josh
    • State changed from new to stale

    Staling out, please reopen if this is still a problem.

    October 28th, 2008 @ 04:34 PM