Améliorations chargement JS async

En particulier pour global_view.js.
Suppression d'une requête avortée dans Chrome.
This commit is contained in:
Alexandre Alapetite
2013-11-04 20:23:46 +01:00
parent 6fbb62a2fc
commit 4a999fb628
3 changed files with 14 additions and 6 deletions

View File

@@ -151,7 +151,7 @@ function httpConditional($UnixTimeStamp,$cacheSeconds=0,$cachePrivacy=0,$feedMod
if ($cacheSeconds<0)
{
$cache='private, no-cache, no-store, must-revalidate';
header('Expires: 0');
//header('Expires: 0');
header('Pragma: no-cache');
}
else
@@ -159,7 +159,7 @@ function httpConditional($UnixTimeStamp,$cacheSeconds=0,$cachePrivacy=0,$feedMod
if ($cacheSeconds===0)
{
$cache='private, must-revalidate, ';
header('Expires: 0');
//header('Expires: 0');
}
elseif ($cachePrivacy===0) $cache='private, ';
elseif ($cachePrivacy===2) $cache='public, ';