I have in environment.rb: config.action_controller.page_cache_directory = RAILS_ROOT + "/public/ cache"
The following rules in lighttpd.conf: url.rewrite += ( "^/$" => "/cache/index.html" ) url.rewrite += ( "^([^.]+)$" => "/cache/$1.html" )
What I'm seeing is that if a page has already been cached (and exists in public/cache), it gets served properly. However, if the page hasn't yet been cached, mongrel is looking for the cached page, can't find it and throws a Routing Error.
I followed this article pretty closely: http://www.railsenvy.com/2007/2/28/rails-caching-tutorial
Any ideas?