Skip to main content

Aksela Disallow Cache Path Add

With this API, you can add the pages that are not cached in Aksela.

Parameters

Parameter

Type

Required

Description

user_key

string

Yes

API User Token

user_secret

string

Yes

API User Secret Token

zone_id

integer

Yes

Zone ID

disallow_cache_paths

string

Yes

By default, all HTML files served by your server and all resources (CSS, images, JavaScript) found in HTML files whose origin matches the HTML file, or whose origin is authorized via Domain, will be rewritten. However, this can be restricted with custom paths entered.

Return Values

Variable

Type

status

bool

data

object

Example PHP Code

CODE
<?php
$curl_post_data = array('user_key' => 'Your User Key','user_secret' =>'Your User Secret','zone_id' => zoneid,'disallow_cache_paths' => 'Your Path');
$request_body = json_encode($curl_post_data);$service_url = 'https://api.medianova.com/v1/zone/aksela/disallow_cache_path_add';$ch = curl_init($service_url);curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $request_body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Content-Length: ' . strlen($request_body)));
$response = curl_exec($ch);var_dump($response);?>

Example Output

CODE
{
"status": true,
"data": ["/yourPaths"],
"opid": "576UWnEydPJfXAYB"}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.