Weird Safari 4 issue with template caching!

Anybody else experience this problem:

I've recently created two applications, both of which are created in
Rails 2.3.3 and use template caching on a few of the pages.

The sites are launched and seem to be running fine. They load as
expected in Firefox, Opera and IE.
When I click through various links in Safari 4, the browser will
sometimes (30% of the time) display the HTML source rather than the
page being rendered.

This doesn't happen when I remove the template caching calls from the
controllers.

Any ideas?

Not possible to guess without the actual code. A good check would be
to run the generated HTML through the W3C HTML validator to see if
there are some malformed tags causing the issue.