Skip to content

Instantly share code, notes, and snippets.

@dirkeinecke
Last active August 29, 2015 14:14
Show Gist options
  • Save dirkeinecke/e337a84370156f003360 to your computer and use it in GitHub Desktop.
Save dirkeinecke/e337a84370156f003360 to your computer and use it in GitHub Desktop.
Das folgende Beispiel zeigt, wie man das Caching im Browser serverseitig durch PHP unterbindet.
header('Expires: Mon, 26 Jul 1990 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment