[-] Project : #PSCFI-4737 - Add no-cache to header when there are 301 to avoid caching
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13487 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user