Browser Cache Rule

Define browser-side caching behavior for specific file types and paths using the Browser Cache Rule feature.

Browser cache rules optimize website performance by controlling how long content stays in the visitor’s browser. This reduces redundant data transfers and minimizes repeated load times.

You can apply different caching behaviors based on the following criteria:

  • Full path

  • Directory

  • File extension

  • All files

This feature is managed through the Medianova Control Panel.

Access the Browser Cache Rule

Follow these steps to access the feature before performing any operations:

1

In the Medianova Control Panel, navigate to CDN Resources.

This lists all CDN delivery endpoints associated with your account.

2

Select the desired resource from the list.

3

Click the Caching tab.

This tab contains all settings related to content delivery and caching behavior.

4

Open the Browser Cache Rule section.

The configuration table for existing rules is displayed.

Create a Cache Rule

Click Add to define a new browser cache rule.

The 'Add Browser Cache Rule' dialog box appears after clicking Add.
1

Select Rule Type Choose which type of resource the rule applies to:

Type

Description

All Files

Applies to all resources regardless of path or extension.

Full Path

Applies to a specific URL path.

Directory

Applies to all files in a directory (e.g., /images/).

File Extension

Applies by file type (e.g., .css, .jpg, .js).

2

Select Priority

Select a priority level (High, Medium, or Low) to determine rule evaluation order.

3

Select Cache Mode

Determine how the browser handles the resource:

Mode

Behavior

Origin

Caches content based on origin server headers.

No Cache

Disables browser caching.

Cache

Forces browser caching for a specific duration.

4

Configure HTML/JSON Option

Control whether HTML and JSON files are included:

  • On: Rule also applies to .html and .json.

  • Off: These file types are excluded.

5

Click Submit to confirm and activate the cache rule.

Click Submit to activate the cache rule.

Once saved, the rule is immediately applied to matching requests.

Best Practices

  • Use file extension rules to cache static assets like .js, .css, and .png for long durations.

  • Use no cache mode for frequently updated resources (e.g., .html, .json APIs).

  • Assign high priority to specific full path or directory rules if they should override global rules.

Last updated

Was this helpful?