Created
January 20, 2012 20:14
-
-
Save perusio/1649344 to your computer and use it in GitHub Desktop.
Module that sends an header for disabling microcaching.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_init(). | |
*/ | |
function drupal_microcache_header_init() { | |
drupal_add_http_header('X-Accel-Expires', 0); | |
} // drupal_microcache_header_init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is for Drupal 7.