How to prevent caching of a page?
drupal_page_is_cacheable can also be used.

Calling:

drupal_page_is_cacheable(FALSE);


Should do the trick.

And for Drupal 8:

Drupal::service('page_cache_kill_switch')-&gt;trigger();