formattage
This commit is contained in:
parent
324203d5fa
commit
cad306b906
|
@ -26,7 +26,7 @@ Last-Modified:
|
||||||
|
|
||||||
Exemple de mise en cache en PHP :
|
Exemple de mise en cache en PHP :
|
||||||
|
|
||||||
~~~
|
~~~{.php}
|
||||||
$offset=3600*20; //Forte période 20h
|
$offset=3600*20; //Forte période 20h
|
||||||
//$offset=3600*3; //Période normale 3h
|
//$offset=3600*3; //Période normale 3h
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ header("X-generated-at: " .date(DATE_RFC822));
|
||||||
|
|
||||||
Exemple de non-mise en cache en PHP :
|
Exemple de non-mise en cache en PHP :
|
||||||
|
|
||||||
~~~
|
~~~{.php}
|
||||||
header("Pragma: no-cache");
|
header("Pragma: no-cache");
|
||||||
header("Cache-Control: no-cache");
|
header("Cache-Control: no-cache");
|
||||||
~~~
|
~~~
|
||||||
|
|
Loading…
Reference in a new issue