Skip to content

Instantly share code, notes, and snippets.

@perusio
Created January 20, 2012 20:14
Show Gist options
  • Select an option

  • Save perusio/1649344 to your computer and use it in GitHub Desktop.

Select an option

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

perusio commented Jan 20, 2012

Copy link
Copy Markdown
Author

This is for Drupal 7.

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