Commits

C4ptain Crunch committed a02a186

Amélioration du cache

  • Participants
  • Parent commits c1f5627

Comments (0)

Files changed (3)

 ExpiresDefault "modification plus 1 day"
 ### Applique une en-tête Cache-Control à index.html
 <Files index.php>
-Header append Cache-Control "public, must-revalidate"
+Header append Cache-Control "public"
 </Files>
 <Files home.php>
-Header append Cache-Control "public, must-revalidate"
+Header append Cache-Control "public"
 </Files>
+
+Header append Cache-Control "public"

File include/start.php

 include BASE.'include/compteur_total.php';
 
 $template = array();
-
+header('Charset: UTF-8');
 $template['totg'] = round($totg,0);
 $template['date'] = $date;
 $template['totarbres'] = $totarbres;

File template/head.tpl

 <!DOCTYPE html>
 <html lang="fr">
 <head>
-	<script type="text/javascript" src="js/html5.js"></script>
 	<title><?php if(isset($template['title'])) echo $template['title'].' - '; ?>Earth & cO2</title>
 	<meta charset="utf-8">
 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 	<link rel="Shortcut Icon" type="image/ico" href="img/favicon.png">
 	<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen">
 	<link rel="stylesheet" href="css/style.css" type="text/css" media="screen">          
+        <?php if(isset($template['title']) AND $template['title'] == _('Accueil')) { ?>
+              <script type="text/javascript" src="js/home.js"></script>
+               <link rel="stylesheet" href="css/slide.css" type="text/css" media="screen">
+        <?php } ?>
+        <script type="text/javascript" src="js/html5.js"></script>
 	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
-	<?php if(isset($template['title']) AND $template['title'] == _('Accueil')) { ?>
-	      <script type="text/javascript" src="js/home.js"></script>
-	       <link rel="stylesheet" href="css/slide.css" type="text/css" media="screen">
-	<?php } ?>
-
 </head>
 <body>
 	<div id="wrap">