Noch einen Tick besser das Cachen zu vermeiden ist eine Kombination aus:
In Flash:
PHP-Code:
"?zufall="+new Date().getTime()
Im HTML Dok
PHP-Code:
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
Via PHP:
PHP-Code:
header('Cache-Control: no-store, no-cache, must-revalidate');
// Date in the past , Datum der Vergangenheit
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified , immer verändert
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1 , neues http Protokoll
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0, altes http protokoll
header("Pragma: no-cache");
Liebe Grüsse
Matze K.