diff --git a/HowtoCacheHTTP.md b/HowtoCacheHTTP.md index 7d827168..71d2e636 100644 --- a/HowtoCacheHTTP.md +++ b/HowtoCacheHTTP.md @@ -26,7 +26,7 @@ Last-Modified: Exemple de mise en cache en PHP : -~~~ +~~~{.php} $offset=3600*20; //Forte période 20h //$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 : -~~~ +~~~{.php} header("Pragma: no-cache"); header("Cache-Control: no-cache"); ~~~