Created
April 28, 2014 07:25
-
-
Save flashvnn/11364128 to your computer and use it in GitHub Desktop.
Drupal disable cache on page prevent click "Back" button
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 | |
// Add header to prevent cache on page. | |
drupal_add_http_header('Cache-Control', 'no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0'); | |
drupal_add_http_header('Pragma', 'no-cache'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment