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. Thanks, Curtis
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
> It only adds .html if no extension is found. It thinks .21 is the > extension.Thank you! I should have done this in the first place but after you said the above I looked into the Rails code and modified the page caching so that it always applies the extension. Curtis