Debutant en html,php se posant une question
Fermé
Hawat
-
1 févr. 2002 à 15:24
Bobinours Messages postés 2898 Date d'inscription jeudi 26 avril 2001 Statut Membre Dernière intervention 21 mars 2013 - 1 févr. 2002 à 16:12
Bobinours Messages postés 2898 Date d'inscription jeudi 26 avril 2001 Statut Membre Dernière intervention 21 mars 2013 - 1 févr. 2002 à 16:12
A voir également:
- Debutant en html,php se posant une question
- Alert php ✓ - Forum PHP
- Image cliquable html ✓ - Forum Internet / Réseaux sociaux
- Header php - Astuces et Solutions
- Undefined index php - Astuces et Solutions
- Positionner une image html ✓ - Forum HTML
1 réponse
Bobinours
Messages postés
2898
Date d'inscription
jeudi 26 avril 2001
Statut
Membre
Dernière intervention
21 mars 2013
503
1 févr. 2002 à 16:12
1 févr. 2002 à 16:12
Il ne faut pas que ton navigateur stocke la page dans son cache !
Pour empecher le cache :
En PHP:
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
?>
En HTML:
<HEAD>
<META http-equiv="Cache-Control" content="no-cache">
<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Expires" content="0">
</HEAD>
-= Bobinours =-
Pour empecher le cache :
En PHP:
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
?>
En HTML:
<HEAD>
<META http-equiv="Cache-Control" content="no-cache">
<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Expires" content="0">
</HEAD>
-= Bobinours =-