webForumDet fria alternativet

Uppdatera bild

PHP

2 svar · 329 visningar · startad av antux

Medlem sedan feb. 20048 inlägg
Frågan#1
Medlem sedan juni 20015 009 inlägg
#2

Sök!

function noCache() {
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Date in the past
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
    header("Cache-Control: no-store, no-cache, must-revalidate");  // HTTP/1.1
    header("Cache-Control: post-check=0, pre-check=0", false);
    header("Pragma: no-cache");                          // HTTP/1.0
    }
Medlem sedan apr. 2002830 inlägg
#3

eller så sätter du bara en timestamp efter bildnamnet..

echo '<img src="bildensnamn.jpg?' . time(). '">';

//Nippe

253 ms totalt · 4 externa anrop · v20260731065814-full.1dc6f849
118 ms — deklarationer (db)
0 ms — hämta statistik (cache)
131 ms — hämta tråd, inlägg och bilagor (db)
119 ms — ändringar (db)