pense-bête de bruno sanchiz

Accueil > Programmation > Html Css Javascript... > html:meta

html:meta

Publié le 28 février 2007, dernière mise-à-jour le 22 août 2023, 12 visites, 23096 visites totales.

/humans.txt

voir https://humanstxt.org/
/humans.txt

/security.txt

/security.txt

opengraph : les balises meta opengraph/og

site officiel ?, opengraphprotocol.org
Exemple avec ce site :

(2007)

Pour renvoyer sur une autre page : redirection

header("location: index.php?erreur=2");die();exit();

<script language="javascript"
type="text/javascript">
<!--
window.location.replace("http://jterrier.net/trombinoagf/membre.php");
-->
</script>
<META
    HTTP-EQUIV="Refresh"
    CONTENT="1; URL=http://bruno.sanchiz.free.fr/spip/">

    content="nombre de secondes"
    URL="l’adresse de renvoi"

NB on peut afficher quelque chose avant la redirection ;

ACTUALISATION AUTOMATIQUE DU SITE

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">

pas de cache de la page

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");
header("Edge-control: max-age=0s");
[bruno sanchiz]