Skip to content

Instantly share code, notes, and snippets.

@perusio
Created January 20, 2012 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perusio/1649344 to your computer and use it in GitHub Desktop.
Save perusio/1649344 to your computer and use it in GitHub Desktop.
Module that sends an header for disabling microcaching.
<?php
/**
* Implements hook_init().
*/
function drupal_microcache_header_init() {
drupal_add_http_header('X-Accel-Expires', 0);
} // drupal_microcache_header_init
@perusio
Copy link
Author

perusio commented Jan 20, 2012

This is for Drupal 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment