Page Rules Settings
Learn about the actions Medianova CDN can take based on a page rule, and the configuration options for each setting.
Settings control the actions Medianova CDN takes once a request matches the URL pattern defined in a page rule.
The table below outlines all settings available in Page Rules from the Medianova Panel.
Cache Type
Use the Cache Type setting to control CDN caching.
Select Edge to specify how long the CDN may cache responses.
Select Origin to instruct the CDN to determine the maximum cache duration from origin response headers cache-control
or expires
.
Select Dynamic to disallow the CDN to cache responses for matching URLs.
CORS
The CORS setting controls the cross-origin resource sharing (CORS) header access-control-allow-origin
in responses served by Medianova CDN edge servers.
On
Edge servers use the settings of the Cors Header feature
Off
Edge servers forward the CORS header from origin
Dynamic
Outgoing CDN responses have the access-control-allow-origin: <origin>
CORS header, where <origin>
is the value of the Origin
header in the incoming request
Custom Header
Set the Custom Header Type to Default to have the CDN inherit the parent settings, as configured in the Headers tab in the Medianova Panel.
Set the Custom Header Type to Custom to disable parent setting inheritance and customize the headers. Configure the CDN to manipulate headers in requests to origin, or to manipulate headers in responses the CDN sends to clients/browsers.
Add Origin Request Header
Add header to requests to origin
Remove Origin Request Header
Remove header from requests to origin
Add CDN Response Header
Add header to outgoing CDN responses
Remove CDN Response Header
Remove header from outgoing CDN responses
Downloadable Query String Header
Use the Downloadable Query String Header setting to trigger browsers to download a file instead of displaying it.
In the page rule, toggle the setting on and specify a Downloadable Query String Header Key and a Downloadable Query String Header Value. For example, set the key to download
and the value to yes
to trigger a browser to download the file when it loads a URL with query string ?download=yes
(and the URL matches on File Path and File Extension as configured in the page rule).
The CDN will send the content-disposition
response header with in its value the attachment
attribute and the path to the file. For example, content-disposition: attachment; filename="manual.pdf"
Exact Match
Turn on Exact Match to disable recursive directory processing.
For example, if the page rule has File Path /dir/
and Exact Match is enabled, only URLs for files in that exact directory will match, while with Exact Match off (default) the page rule would also take action for files in subdirectories like /dir/subdir/
.
Hotlink Protection
If Hotlink Protection is turned on in the parent setting in the Security tab, a new page rule will inherit its status and configuration. The Update a Page Rule screen then shows the Hotlink Protection toggle in the active state and the Hotlink Protection Type is set to Default.
Change the Hotlink Protection Type to Custom to and confgure the Hotlink Protections that must apply to matching URLs.

Options Request
Turn on Options Request to have the CDN send edge-generated responses to requests with the OPTION method in case the origin does not respond to OPTION requests.
Query String Caching
While a new page rule inherits the parent setting for Query String Caching (as configured in the Caching tab in the Medianova Panel), you can customize the CDN query string caching behavior for matching URLs.
Query String Caching in Page Rules has four options:
Retain All
Query string is part of the cache key. /image.jpg?123
is cached separately from /image.jpg?456
Ignore All
All query string parameters are ignored. /image.jpg?123
and /image.jpg?456
are considered the same response
Retain Specific
Only the specified query string parameters are included in the cache key
Ignore Specific
The specified query string parameters are ignored when determining the cache key
Range Based Caching
Page Rules allows you to enable/disable Range Based Caching for matching URLs, regardless of the parent setting for Range Based Caching (as configured in the Caching tab in the Medianova Panel)..
Last updated
Was this helpful?