noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 12/65: avoid problem with cache for static fi


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 12/65: avoid problem with cache for static file
Date: Wed, 09 Sep 2015 08:27:04 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit f905c66de88f818678833f36cb8ca3ed68c50400
Author: Dany De Bontridder <address@hidden>
Date:   Sun Aug 30 04:00:01 2015 +0200

    avoid problem with cache for static file
---
 include/user_common.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/user_common.php b/include/user_common.php
index 42dc3b5..840754b 100644
--- a/include/user_common.php
+++ b/include/user_common.php
@@ -211,6 +211,9 @@ function CleanUrl()
 }
 function redirect($p_string,$p_time=0)
 {
+    if (strpos('?', $p_string) == 0 ) {
+        $p_string = $p_string.'?v='.microtime(true);
+    }
     echo '<HTML><head><META HTTP-EQUIV="REFRESH" 
content="'.$p_time.';url='.$p_string.'"></head><body> Connecting... 
</body></html>';
 }
 /*!\brief remove the useless space, change comma by period and try to return



reply via email to

[Prev in Thread] Current Thread [Next in Thread]