[Mongrel] rails cache problems

Rick Olson technoweenie at gmail.com
Sun Feb 11 18:42:05 EST 2007


On 2/11/07, Mitchell Curtis Hatter <curtis.hatter at insightbb.com> wrote:
> I'm having issues with page caching in Rails 1.1.6 where it's not
> always putting a .html extension at the end of the cached files (so I
> end up with files like 122.21 instead of 122.21.html). Then the next
> time it is served up via the web server (mongrel or apache) Firefox
> treats it as a binary file. I can't find a fix for this so I was
> hoping there would be a work around in Mongrel or Apache.
>
> I tried ForceType text/html inside a <Directory> element in my apache
> configuration but that didn't seem to be completely reliable.
>
> For now I'll switch to trying to use action caching instead.

It only adds .html if no extension is found.  It thinks .21 is the extension.

-- 
Rick Olson
http://weblog.techno-weenie.net
http://mephistoblog.com


More information about the Mongrel-users mailing list