Merge pull request #118 from axelabhay/cf-new-page-rules-action
Adding new function setOriginCacheControl as a new page rule action.
This commit is contained in:
@@ -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)
|
public function setBrowserIntegrityCheck(bool $active)
|
||||||
{
|
{
|
||||||
$this->addConfigurationOption('browser_check', [
|
$this->addConfigurationOption('browser_check', [
|
||||||
|
|||||||
Reference in New Issue
Block a user