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.
Configure edge caching behaviour and TTL
All
Configure cross-origin resource sharing headers
All
Add or remove request and response headers
All
Trigger browser to download file
All
Disable recursive URL matching
All
Configure specific hotlink protection
Starter, Growth, Enterprise
Enable OPTIONS requests
All
Configure specific query string caching
All
Disable range based caching
All
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 sending cross-origin resource sharing (CORS) headers from Medianova CDN edge servers.
Select On or Off to configure edge servers to include or exclude CORS headers in responses.
Select Dynamic to configure edge servers to forward CORS headers from origin.
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
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?