Skip to content

Commit

Permalink
[3.3.1] fixes and closes #30 : no http caching directives set in fron…
Browse files Browse the repository at this point in the history
…t controllers
  • Loading branch information
TrogloGeek committed May 8, 2014
1 parent 2203ec0 commit f8dce70
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Suggested donation: 25 € for basic user, 80 € for professionals which

Donations help me to find time to develop and maintain the module and to answer support requests.

### Release 3.3.0
### Release 3.3.1

#### RELEASE-CANDIDATE feedback requests
- Check that silent response works well (not yet checked due the use of a local virtual machine as server)
Expand Down
12 changes: 12 additions & 0 deletions controllers/front/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ class TggAtosPaymentModuleFrontController extends ModuleFrontController
*/
public $module;

public function init()
{
parent::init();

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
}

public function initContent()
{
parent::initContent();
Expand Down
12 changes: 12 additions & 0 deletions controllers/front/paymentfailure.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ class TggAtosPaymentFailureModuleFrontController extends ModuleFrontController
* @var TggAtos
*/
public $module;

public function init()
{
parent::init();

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
}

public function initContent()
{
Expand Down
12 changes: 12 additions & 0 deletions controllers/front/userreturn.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ class TggAtosUserReturnModuleFrontController extends ModuleFrontController
* @var TggAtos
*/
public $module;

public function init()
{
parent::init();

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
}

public function initContent()
{
Expand Down
2 changes: 1 addition & 1 deletion tggatos.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function __construct()
$this->author = 'TrogloGeek';
$this->tab = 'payments_gateways';
$this->need_instance = 1;
$this->version = '3.3.0';
$this->version = '3.3.1';
$this->currencies_mode = 'checkbox';
$this->ps_versions_compliancy['min'] = '1.5.0.1';
$this->ps_versions_compliancy['max'] = '1.6';
Expand Down

0 comments on commit f8dce70

Please sign in to comment.