For the complete documentation index, see llms.txt. This page is also available as Markdown.

Browser Cache Rule

Configure browser-side caching behavior for different resource types using Browser Cache Rules.

Browser Cache Rule controls browser-side caching through response cache headers. Rules can target all files or specific paths, directories, and file extensions.

You can manage Browser Cache Rules in the Medianova Control Panel or via the API.

Browser Cache Rules control caching in end-user browsers and do not change CDN edge caching behavior. To configure caching on CDN edge servers, use Edge Cache Expiration.

Cache Modes

Each Browser Cache Rule uses one of the following cache modes:

Cache Mode
Behavior

Origin

Honors the caching headers provided by the origin server.

No Cache

Disables browser caching and forces fresh requests.

Cache

Overrides origin caching headers and applies a configured cache duration.

Configure a Browser Cache Rule

1

Open Browser Cache Rule

Open your CDN Resource and select Caching.

Under Browser Cache Rule, select Add rule.

2

Select the Rule Type

Select how the rule matches content:

  • All Files – Applies the rule to all files.

  • Full Path – Matches a specific full path.

  • Directory – Matches content under a specified directory.

  • File Extension – Matches files by extension.

Additional matching fields are displayed when required by the selected type.

3

Set the Priority

Set the Priority value for the rule.

Rules are evaluated by priority, with lower numeric values taking precedence. If a request matches multiple rules, the matching rule with the higher precedence is applied.

4

Select the Cache Mode

Select how browser caching is handled:

  • Origin – Use caching headers provided by the origin.

  • No Cache – Disable browser caching.

  • Cache – Override origin caching headers and configure browser caching for a defined duration.

Configure any additional fields displayed for the selected mode.

5

Add the Rule

Select Add rule.

The rule is added to the Browser Cache Rule list.

6

Configure HTML/JSON Behavior

Use Apply the HTML/JSON files to control whether Browser Cache Rules also apply to HTML and JSON content.

7

Save the Configuration

Select Save in the pending changes bar.

Review the pending changes and confirm the update to apply the configuration to the CDN Resource.

Rule Evaluation

Browser Cache Rules are matched according to their configured type and priority.

The rule list displays the configured:

  • Type

  • Content

  • Priority

  • Cache Mode

  • Cache Time

  • Directive

  • Exact Match

Lower numeric priority values take precedence when multiple rules can match the same request.

Use longer browser cache durations for static assets that change infrequently and shorter durations for frequently updated content.

CDN purge operations clear cached content from CDN edge servers but do not remove content that has already been stored in an end-user's browser.

Last updated

Was this helpful?