Cache_pages with different formats but the same url


I am using a iphone optimized version of my Rails app as explained

Everything is going well, the only problem that I have is with

Because Rails is caching iphone format with the extension .html, that
does not allow me to cache these files without destroy the regular
version of the website.

To say it differently : Cache_pages work using the url and with
different formats but the same url that does not work.

Would someone have any idea of a solution ?

Thank you very much,


I went in caching.rb and change line 150
#request.path + request.path

then adapt your apache conf. to serve the good cache files depending
on the virtualhost