[-] Project : #PSCFI-4737 - Add no-cache to header when there are 301 to avoid caching

This commit is contained in:
mDeflotte
2012-02-21 09:16:27 +00:00
parent 8a253410e0
commit 935012bbda
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -268,6 +268,7 @@ class ShopCore extends ObjectModel
// If an URL was found but is not current URL, redirect to main URL
$request_uri = substr($_SERVER['REQUEST_URI'], strlen($found_uri));
header('HTTP/1.1 301 Moved Permanently');
header('Cache-Control: no-cache');
header('location: http://'.$row['domain'].$row['uri'].$request_uri);
exit;
}