empecher le cache sous SAFARI??????

Eléphant du PHP | 170 Messages

23 mars 2008, 16:16

Bonjour a tous,

j'ai un gros soucis avec SAFARI avec un umpload de photo, la mise a jour ne se fait pas de suite, j'ai essayer toutes les balises que je connais rien n'y fait...

quelqu'un aurait il une astuce?

j'ai essayer les valeurs tournantes derriere l'URL de la photo ça deconne quelques fois encore, j'ai essayer les "no caches dans les headers c'est pareiol.



Sous mozilla ou IE ça marche tip top mais sous safari c'est la zone...

ViPHP
ViPHP | 4674 Messages

23 mars 2008, 16:53

Bonjour,

on pourrait voir les codes en question ? Je sais que WebKit est tatillon sur la case des requêtes HTTP.

Une dernière chose, tu as pensé à ajouter un point d'interrogation de plus au titre ? Et relis toi, il y a beaucoup de fautes de frappes ... Merci.
« Un handicap est le résultat d'une rencontre entre une déficience ou différence et une incapacité de la société à répondre à celle-ci. »

Hoa : http://hoa-project.net (sur @hoaproject).

Eléphant du PHP | 170 Messages

23 mars 2008, 17:35

oui pardon pour les fautes!
voici le code d'une des pages qui contient 9 photos, il y a trois pages ouvertes dans la frame du menu (celle ci et 2 autres ^pour la deco.
<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
		<title>Patrick LEGHIMA - Architecte d'Interieur - 24, rue d'Armaill&eacute; 75017 PARIS - tel:01.55.37.03.03- fax: 01.55.37.03.04 - [email protected]</title>
		<csscriptdict>
			<script><!--
CSInit = new Array;
function CSScriptInit() {
if(typeof(skipPage) != "undefined") { if(skipPage) return; }
idxArray = new Array;
for(var i=0;i<CSInit.length;i++)
	idxArray[i] = i;
CSAction2(CSInit, idxArray);}
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
	var curDoc = ly ? ly.document : document; var elem = curDoc[n];
	if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
		elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
	return elem;
}

function CSClickReturn () {
	var bAgent = window.navigator.userAgent; 
	var bAppName = window.navigator.appName;
	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
		return true; // dont follow link
	else return false; // dont follow link
}

function CSButtonReturn () {
	var bAgent = window.navigator.userAgent; 
	var bAppName = window.navigator.appName;
	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
		return false; // follow link
	else return true; // follow link
}

CSIm = new Object();
function CSIShow(n,i) {
	if (document.images) {
		if (CSIm[n]) {
			var img = (!IsIE()) ? CSFindElement(n,0) : document[n];
			if (img && typeof(CSIm[n][i].src) != "undefined") {img.src = CSIm[n][i].src;}
			if(i != 0)
				self.status = CSIm[n][3];
			else
				self.status = " ";
			return true;
		}
	}
	return false;
}
function CSILoad(action) {
	im = action[1];
	if (document.images) {
		CSIm[im] = new Object();
		for (var i=2;i<5;i++) {
			if (action[i] != '') { CSIm[im][i-2] = new Image(); CSIm[im][i-2].src = action[i]; }
			else CSIm[im][i-2] = 0;
		}
		CSIm[im][3] = action[5];
	}
}
CSStopExecution = false;
function CSAction(array) { 
	return CSAction2(CSAct, array);
}
function CSAction2(fct, array) { 
	var result;
	for (var i=0;i<array.length;i++) {
		if(CSStopExecution) return false; 
		var actArray = fct[array[i]];
		if (actArray == null) return false;
		var tempArray = new Array;
		for(var j=1;j<actArray.length;j++) {
			if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
				if(actArray[j][0] == "VAR") {
					tempArray[j] = CSStateArray[actArray[j][1]];
				}
				else {
					if(actArray[j][0] == "ACT") {
						tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
					}
				else
					tempArray[j] = actArray[j];
				}
			}
			else
				tempArray[j] = actArray[j];
		}			
		result = actArray[0](tempArray);
	}
	return result;
}
CSAct = new Object;


// --></script>
		</csscriptdict>
		<csactiondict>			
<script><!--
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button2',/*URL*/'Images/Pt2-off.jpg',/*URL*/'Images/Pt2-on.jpg',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button9',/*URL*/'Images/Pt3-off.jpg',/*URL*/'Images/Pt3-on.jpg',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button10',/*URL*/'Images/Gd1.jpg',/*URL*/'',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button4',/*URL*/'Images/Pt4-off.jpg',/*URL*/'Images/Pt4-on.jpg',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button5',/*URL*/'Images/Pt5-off.jpg',/*URL*/'Images/Pt5-on.jpg',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button3',/*URL*/'Images/Pt6-off.jpg',/*URL*/'Images/Pt6-on.jpg',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button6',/*URL*/'Images/Pt7-off.jpg',/*URL*/'Images/Pt7-on.jpg',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button7',/*URL*/'Images/Pt8-off.jpg',/*URL*/'Images/Pt8-on.jpg',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button',/*URL*/'Images/Pt9-off.jpg',/*URL*/'Images/Pt9-on.jpg',/*URL*/'','');

// -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
		</csactiondict>
	</head>

	<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"  bgcolor="white" onload="CSScriptInit();">
		<div align="center">
			<table border="0" cellpadding="0" cellspacing="0" width="699" background="../Communs/Tab21.jpg">
				<tr>
					<td colspan="9"><img src="../Communs/Tab01.jpg" width="700" height="70" border="0"></td>
				</tr>
				<tr height="57">
					<td width="130" height="57"><img src="../Communs/Tab02.jpg" width="130" height="57" border="0"></td>
					
      <td width="57" height="57"><img src="Images/Pt1-on.jpg" width="57" height="57" border="0" onDblClick="MM_goToURL('parent','../../formulaire.php?origine=resid&nimage=1&nchantier=1');return document.MM_returnValue"></a></td>
					<td width="14" height="57"><img src="../Communs/Tab03.jpg" width="14" height="57" border="0"></td>
					<td width="57" height="57"><csobj w="57" h="57" t="Button" ht="Images/Pt2-on.jpg"><a href="Page2.html" target="_self"><img src="Images/Pt2-off.jpg" name="button2" width="57" height="57" border="0"></a></csobj></td>
					<td width="14" height="57"><img src="../Communs/Tab04.jpg" width="14" height="57" border="0"></td>
					<td width="57" height="57"><csobj w="57" h="57" t="Button" ht="Images/Pt3-on.jpg"><a href="Page3.html" target="_self"><img src="Images/Pt3-off.jpg" name="button9" width="57" height="57" border="0" onDblClick="MM_openBrWindow('Page3.html','','')"></a></csobj></td>
					<td width="40" height="57"><img src="../Communs/Tab05.jpg" width="40" height="57" border="0"></td>
					<td width="16" rowspan="5"><csobj w="200" h="200" t="Button"><a href="/Chantier1/Big1.html" target="_blank"><img src="Images/Gd1.jpg" width="200" height="200" name="button10" border="0"></a></csobj></td>
					<td height="57"><img src="../Communs/Tab06.jpg" width="130" height="57" border="0"></td>
				</tr>
				<tr height="14">
					<td colspan="7" height="14"><img src="../Communs/Tab07.jpg" width="370" height="14" border="0"></td>
					<td height="14"><img src="../Communs/Tab08.jpg" width="130" height="14" border="0"></td>
				</tr>
				<tr height="57">
					<td width="130" height="57"><img src="../Communs/Tab09.jpg" width="130" height="57" border="0"></td>
					<td width="57" height="57"><csobj w="57" h="57" t="Button" ht="Images/Pt4-on.jpg"><a href="Page4.html" target="_self"><img src="Images/Pt4-off.jpg" name="button4" width="57" height="57" border="0" onDblClick="MM_openBrWindow('../../varsess4.php','','')"></a></csobj></td>
					<td width="14" height="57"><img src="../Communs/Tab10.jpg" width="14" height="57" border="0"></td>
					<td width="57" height="57"><csobj w="57" h="57" t="Button" ht="Images/Pt5-on.jpg"><a href="Page5.html" target="_self"><img src="Images/Pt5-off.jpg" name="button5" width="57" height="57" border="0" onDblClick="MM_openBrWindow('../../varsess5.php','','')"></a></csobj></td>
					<td width="14" height="57"><img src="../Communs/Tab11.jpg" width="14" height="57" border="0"></td>
					<td width="57" height="57"><csobj w="57" h="57" t="Button" ht="Images/Pt6-on.jpg"><a href="Page6.html" target="_self"><img src="Images/Pt6-off.jpg" name="button3" width="57" height="57" border="0" onDblClick="MM_openBrWindow('../../varsess6.php','','')"></a></csobj></td>
					<td width="40" height="57"><img src="../Communs/Tab12.jpg" width="40" height="57" border="0"></td>
					<td height="57"><img src="../Communs/Tab13.jpg" width="130" height="57" border="0"></td>
				</tr>
				<tr height="14">
					<td height="14" colspan="7"><img src="../Communs/Tab14.jpg" width="370" height="14" border="0"></td>
					<td height="14"><img src="../Communs/Tab15.jpg" width="130" height="14" border="0"></td>
				</tr>
				<tr height="57">
					<td width="130" height="57"><img src="../Communs/Tab16.jpg" width="130" height="57" border="0"></td>
					<td width="57" height="57"><csobj w="57" h="57" t="Button" ht="Images/Pt7-on.jpg"><a href="Page7.html" target="_self"><img src="Images/Pt7-off.jpg" name="button6" width="57" height="57" border="0" onDblClick="MM_openBrWindow('../../varsess7.php','','')"></a></csobj></td>
					<td width="14" height="57"><img src="../Communs/Tab17.jpg" width="14" height="57" border="0"></td>
					<td width="57" height="57"><csobj w="57" h="57" t="Button" ht="Images/Pt8-on.jpg"><a href="Page8.html" target="_self"><img src="Images/Pt8-off.jpg" name="button7" width="57" height="57" border="0" onDblClick="MM_openBrWindow('../../varsess8.php','','')"></a></csobj></td>
					<td width="14" height="57"><img src="../Communs/Tab18.jpg" width="14" height="57" border="0"></td>
					<td width="57" height="57"><csobj w="57" h="57" t="Button" ht="Images/Pt9-on.jpg"><a href="Page9.html" target="_self"><img src="Images/Pt9-off.jpg" name="button" width="57" height="57" border="0" onDblClick="MM_openBrWindow('../../varsess9.php','','')"></a></csobj></td>
					<td width="40" height="57"><img src="../Communs/Tab19.jpg" width="40" height="57" border="0"></td>
					<td height="57"><img src="../Communs/Tab20.jpg" width="130" height="57" border="0"></td>
				</tr>
				<tr height="122">
					<td height="122" colspan="9" valign="top"></td>
				</tr>
			</table>
		</div>
	</body>

</html>
[Note : ce message a été posté de manière anonyme avant d'être réattribué à son auteur]

Modérateur PHPfrance
Modérateur PHPfrance | 6373 Messages

23 mars 2008, 20:37

Modération :
chris51200, si le sujet suivant concerne le même problème, peux-tu continuer dedans, je fermerai celui-là.
:arrow: http://www.phpfrance.com/forums/voir_sujet-36994.php

Pas de multipostage ici, merci de prendre le temps de lire les règlements.

Invité
Invité n'ayant pas de compte PHPfrance

24 mars 2008, 10:18

j'ai transferer, tu peux fermer ce post!
merci