Drupal 6.31 via cherry-pick

fixes #82
Fix #84 by using drupal_page_is_cacheable()