From ed91e639be2dfa0babaecea287706a313b151e51 Mon Sep 17 00:00:00 2001 From: Abhay Saraf Date: Tue, 28 Jan 2020 11:11:05 +0530 Subject: [PATCH] Adding new function setOriginCacheControl as a new page rule action. --- src/Configurations/PageRulesActions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Configurations/PageRulesActions.php b/src/Configurations/PageRulesActions.php index 359d3c7..70b4b3a 100755 --- a/src/Configurations/PageRulesActions.php +++ b/src/Configurations/PageRulesActions.php @@ -33,6 +33,13 @@ class PageRulesActions implements Configurations ]); } + public function setOriginCacheControl(bool $active) + { + $this->addConfigurationOption('explicit_cache_control', [ + 'value' => $this->getBoolAsOnOrOff($active) + ]); + } + public function setBrowserIntegrityCheck(bool $active) { $this->addConfigurationOption('browser_check', [