doz/clicktale — pull request #1 by cbillen (2012-08-13 19:36:39+00:00)
Title: checking response type 

Hi There,

I added a check in the controller for page caching to ensure that the response we're sending is text/html

Before this patch if you made a request to an html which returns a pdf via send_file you would get a blank pdf because page caching was taking place. But now it will check that we are actually sending text/html before attempting the cache.