diff --git a/classes/controller/FrontController.php b/classes/controller/FrontController.php
index 9e251d7db..3dc1291b0 100755
--- a/classes/controller/FrontController.php
+++ b/classes/controller/FrontController.php
@@ -112,12 +112,14 @@ class FrontControllerCore extends Controller
if ($this->ssl && !Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED'))
{
header('HTTP/1.1 301 Moved Permanently');
+ header('Cache-Control: no-cache');
header('Location: '.Tools::getShopDomainSsl(true).$_SERVER['REQUEST_URI']);
exit();
}
else if (Configuration::get('PS_SSL_ENABLED') && Tools::usingSecureMode() && !($this->ssl))
{
header('HTTP/1.1 301 Moved Permanently');
+ header('Cache-Control: no-cache');
header('Location: '.Tools::getShopDomain(true).$_SERVER['REQUEST_URI']);
exit();
}
@@ -567,6 +569,7 @@ class FrontControllerCore extends Controller
$strParams = ((strpos($canonicalURL, '?') === false) ? '?' : '&').implode('&', $params);
header('HTTP/1.0 301 Moved');
+ header('Cache-Control: no-cache');
if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_ && $_SERVER['REQUEST_URI'] != __PS_BASE_URI__)
die('[Debug] This page has moved
Please use the following URL instead: '.$canonicalURL.Tools::safeOutput($strParams).'');
Tools::redirectLink($canonicalURL.$strParams);
@@ -582,7 +585,7 @@ class FrontControllerCore extends Controller
{
if (!isset($this->context->cookie->iso_code_country) || (isset($this->context->cookie->iso_code_country) && !in_array(strtoupper($this->context->cookie->iso_code_country), explode(';', Configuration::get('PS_ALLOWED_COUNTRIES')))))
{
- include_once(_PS_GEOIP_DIR_.'geoipcity.inc');
+ include_once(_PS_GEOIP_DIR_.'geoipcity.inc');
include_once(_PS_GEOIP_DIR_.'geoipregionvars.php');
$gi = geoip_open(realpath(_PS_GEOIP_DIR_.'GeoLiteCity.dat'), GEOIP_STANDARD);
diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php
index 81f7af545..67a77e72c 100644
--- a/classes/shop/Shop.php
+++ b/classes/shop/Shop.php
@@ -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;
}