Knowledge Base
medianova.comSupportLog in
  • Welcome to the Medianova Knowledge Base
  • Getting Started
    • Concepts
    • Start your Free Trial
  • Products
    • Security
      • DDoS Protection
      • SSL/TLS Encryption
        • How to upload and manage SSL Certificates?
        • How to Extract CRT and KEY Files from a PFX Certificate
        • How can I use Free SSL?
        • FAQ
      • Web Application Firewall (WAF)
        • How to activate WAF?
        • Analytics
      • Rate Limiting
      • Hotlink Protection
      • IP Restriction
      • Geoblocking
      • FAQs
    • Performance / CDN
      • Static Content Delivery
        • Create Small Resource
        • Create Large Resource
        • Integrating Static CDN Resource
        • Configuration Basics
          • Medianova IP Blocks
        • Advanced Configuration
          • Origin Settings
            • Advanced Origin Settings
            • Rewrite Origin URLs
            • Origin SNI Request
            • Redirect Handle From Origin
            • Origin Response Timeout
          • CNAME
          • Caching
            • Edge Cache Expiration
            • Browser Cache Rule
            • Query String Caching
            • Etag Verification
            • Error Status Code Cache Expiration
            • Shared Cache
            • Stale Cache
            • Robots.txt file
            • Range Based Caching
          • Headers
            • CORS Header
            • Custom Header
            • X-CDN Header
            • Origin Host Header
            • HTTP Strict Transport (HSTS) Protection
            • X-Frame Options
            • X-XSS Protection
            • X-Content Type Options
          • Purge
          • Prefetch
          • Page Rules
            • Manage Page Rules
            • Page Rules Settings
          • Compression
            • How to Configure Gzip and Brotli
        • Website Framework Integrations
          • Magento CDN Integration
          • Wordpress CDN Integration
          • Phalcon CDN Integration
          • CakePHP CDN Integration
        • Analytics
      • Dynamic Content Acceleration
        • Create Dynamic Resource
        • Integrating Dynamic CDN Resource
        • Aksela Test Steps
        • Advanced Configuration
          • Origin Settings
            • Advanced Origin Settings
            • Rewrite Origin URLs
            • Origin SNI Request
            • Redirect Handle From Origin
            • Origin Response Timeout
          • Caching
            • Edge Cache Expiration
            • Browser Cache Rule
            • Query String Caching
            • Etag Verification
            • Error Status Code Cache Expiration
            • Shared Cache
            • Stale Cache
            • Disallow Cookie Base Cache
            • Cookie Base Cache
            • Header Base Cache
            • Header Value Base Cache
            • MNUID Cookie Base Cache
            • Mobile Redirect
          • Headers
            • CORS Header
            • Custom Header
            • X-CDN Header
            • Origin Host Header
            • HTTP Strict Transport (HSTS) Protection
            • X-Frame Options
            • X-XSS Protection
            • X-Content Type Options
          • Purge
          • Prefetch
          • Page Rules
          • Compression
        • Analytics
      • Streaming Content Delivery
        • Create Streaming Resource
        • Advanced Configuration
          • Origin Settings
            • Redirect Handle From Origin
            • Origin Response Timeout
          • Headers
            • CORS Header
            • Custom Header
            • X-CDN Header
            • Origin Host Header
          • Stream Management
        • Analytics
      • API Caching
      • Private CDN
      • Image Optimization and WebP
        • What is Image Optimization and How Does It Work?
        • What is WebP and How Does It Work?
        • How to Activate Image Optimization and WebP?
        • Analytics
      • FAQs
    • Object Storage / Stook
      • What is Stook?
      • How to Create Stook?
      • How to Connect Bucket?
      • Access Key Management
      • Stook Integration and Usage Guides
        • Migrating Data to Stook Using Rclone
        • Data Transfer to Stook with Cyberduck
        • How to use the AWS SDK for Laravel with Stook?
        • How to use the AWS SDK for PHP with Stook?
        • How do I use the AWS SDK for .NET with Stook?
        • Stook Storage User Guide for AWS CLI
        • How to use AWS SDK for JavaScript with Stook?
        • How do I use Stook with the AWS Java SDK?
        • Using Pre-Signed URL PHP with Stook
        • Using Pre-Marked URL NODEJS With Stook
    • Analytics (MN Logz)
      • Real-Time Logpush
      • Raw Logs
  • Account & Billing
    • Managing Account and Organizations
      • Create new organization
      • Invite user
      • Changing Cloud Panel password
      • Access Controls and Authentication
    • Subscription and Billing
      • Packages
        • Free Trial
        • Starter
        • Growth
        • Enterprise
        • Add-ons
      • Policy
      • Upgrade & Downgrade Procedures
      • Changing your subscription package
      • Payment Info
      • Invoices
  • API Documentation
    • Authentication
    • Security
      • Web Application Firewall (WAF)
      • SSL/TLS
      • Always Use HTTPS Settings
      • Origin Basic Authentication
      • Secure Token
      • Bot Protection
      • Hotlink Protection
      • User Agent ACL
      • IP Restriction ACL
      • Geoblocking
    • Performance / CDN
      • Resources
      • Origin Settings
      • CNAME & SSL
      • Caching
      • Headers
      • Image Optimization & WebP
      • Page Rule
      • Purge
      • Prefetch
      • Stream Management
    • Object Storage / Stook
    • Analytics
      • WAF Analytics
  • Support and Troubleshooting
    • Common Issues and Solutions
      • Troubleshooting Common Setup Issues
      • Troubleshooting Performance Problems
    • Contacting Customer Support
  • Glossary
    • Definition of Important CDN Terms
    • Acronyms and Abbreviations
    • Definition of HTTP Status Error Codes
Powered by GitBook
LogoLogo

© 2025 Medianova. All rights reserved.

On this page

Was this helpful?

Export as PDF
  1. API Documentation
  2. Performance / CDN

Caching

PreviousCNAME & SSLNextHeaders

Last updated 4 months ago

Was this helpful?

ETag verification

put

This setting is available in small, large and dynamic(aksela) resource types.

Path parameters
organization_uuidstringRequired

UUID of the organization

resource_uuidstringRequired

UUID of the resource

Body
status_etag_verificationbooleanRequired

Enables or disables the ETag verification for the resource.

Example: true
Responses
200
Successfully updated the ETag verification setting for the resource.
application/json
put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 33

{
  "status_etag_verification": true
}
200

Successfully updated the ETag verification setting for the resource.

{
  "status": true,
  "data": {}
}

Query String Caching

put

This endpoint updates the query string caching settings for a specific resource. This setting is available in small and dynamic resource types.

Path parameters
organization_uuidstring · uuidRequired

The UUID of the organization.

resource_uuidstring · uuidRequired

The UUID of the resource to update.

Body
resource_uuidstringRequired

The UUID of the resource.

Example: ****-****-****-****
status_qsstring · enumRequired

Controls query string caching behavior.

Example: onPossible values:
status_qs_cache_ignorebooleanRequired

Determines if query string caching should be ignored.

Example: true
status_cqsbooleanRequired

Indicates if caching query string parameters should be enabled.

Example: false
qs_cache_ignore_paramstring[] · max: 25Optional

List of query string parameters to ignore for caching.

Example: ["test"]
Responses
200
Query string caching settings updated successfully.
application/json
put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 138

{
  "resource_uuid": "****-****-****-****",
  "status_qs": "on",
  "status_qs_cache_ignore": true,
  "status_cqs": false,
  "qs_cache_ignore_param": [
    "test"
  ]
}
200

Query string caching settings updated successfully.

{
  "status": true,
  "data": {}
}

Shared Cache

put

This setting is available for small, large and Aksela resource types.

Path parameters
organization_uuidstringRequired

UUID of the organization

resource_uuidstringRequired

UUID of the resource

Body
status_share_cachestring · enumRequired

Enables or disables the shared cache process. Can be 'default' or 'share'.

Example: sharePossible values:
share_cachestringRequired

The domain information of the resource for which shared cache will be performed.

Example: static-test.mncdn.org
Responses
200
Successfully updated the shared cache settings for the resource.
application/json
put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 68

{
  "status_share_cache": "share",
  "share_cache": "static-test.mncdn.org"
}
200

Successfully updated the shared cache settings for the resource.

{
  "status": true,
  "data": {}
}

Browser Cache Rules

put

This endpoint updates the browser cache rules for a specific resource. A maximum of 15 rules can be defined.This setting is available in small, large and dynamic(aksela) resource types.

Path parameters
organization_uuidstring · uuidRequired

The UUID of the organization.

resource_uuidstring · uuidRequired

The UUID of the resource to update.

Body
resource_uuidstringRequired

The UUID of the resource.

Example: ****-****-****-***
browser_cache_with_htmlbooleanOptional

Controls whether HTML content is cached by the browser.

Example: false
Responses
200
Browser cache rules updated successfully.
application/json
put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 981

{
  "resource_uuid": "****-****-****-***",
  "browser_cache_rules": [
    {
      "type": "all_files",
      "content": [],
      "priority": 50,
      "cache_mode": "origin",
      "cache_time": 0,
      "directive": [],
      "exact_match": false
    },
    {
      "type": "full_path",
      "content": [
        "/example/images.jpg"
      ],
      "priority": 40,
      "cache_mode": "cache",
      "cache_time": 60,
      "directive": [
        "must-revalidate",
        "public",
        "private"
      ],
      "exact_match": false
    },
    {
      "type": "directory",
      "content": [
        "/test",
        "/test1/"
      ],
      "priority": 100,
      "cache_mode": "no_cache",
      "cache_time": 0,
      "directive": [],
      "exact_match": false
    },
    {
      "type": "file_extension",
      "content": [
        ".png",
        ".jpg"
      ],
      "priority": 30,
      "cache_mode": "cache",
      "cache_time": 30,
      "directive": [
        "must-revalidate",
        "no-cache",
        "no-store",
        "no-transform",
        "public",
        "private",
        "proxy-revalidate"
      ],
      "exact_match": false
    },
    {
      "type": "directory",
      "content": [
        "/sinem/"
      ],
      "priority": 30,
      "cache_mode": "cache",
      "cache_time": 30,
      "directive": [
        "must-revalidate",
        "no-cache",
        "no-store",
        "no-transform",
        "public",
        "private",
        "proxy-revalidate"
      ],
      "exact_match": true
    }
  ],
  "browser_cache_with_html": false
}
200

Browser cache rules updated successfully.

{
  "status": true,
  "data": {}
}

Edge Cache Expiration

put

This endpoint updates the Edge Cache Expiration settings for a CDN resource. Available for small and large resource types.

Path parameters
organization_uuidstring · uuidRequired

The UUID of the organization.

resource_uuidstring · uuidRequired

The ID of the resource to update.

Body
resource_uuidstringRequired

The UUID of the resource.

Example: *****-*****-****-*****
cache_typestring · enumRequired

The cache type, which can be either 'edge' or 'origin'.

Example: edgePossible values:
edge_cache_expiryinteger · min: 1 · max: 365Optional

The duration for which the edge cache is valid. Required when cache_type is 'edge'.

Example: 6
edge_cache_unitstring · enumOptional

The unit of the edge cache duration. Required when cache_type is 'edge'.

Example: dPossible values:
Responses
200
Edge Cache Expiry updated successfully.
application/json
put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 106

{
  "resource_uuid": "*****-*****-****-*****",
  "cache_type": "edge",
  "edge_cache_expiry": 6,
  "edge_cache_unit": "d"
}
200

Edge Cache Expiry updated successfully.

{
  "status": true,
  "data": {}
}

Error Status Code Cache Expiration

put

This setting is available for small, large and Aksela resource types.

Path parameters
organization_uuidstringRequired

UUID of the organization

resource_uuidstringRequired

UUID of the resource

Body
Responses
200
Successfully updated the error status code cache expiration settings for the resource.
application/json
put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 141

{
  "status_code_cache": [
    {
      "status_codes": [
        500,
        501
      ],
      "cache_expiry": 5,
      "cache_unit": "m"
    },
    {
      "status_codes": [
        400
      ],
      "cache_expiry": 1,
      "cache_unit": "m"
    }
  ]
}
200

Successfully updated the error status code cache expiration settings for the resource.

{
  "status": true,
  "data": {}
}

Stale Cache

put

This setting is available for small, large and dynamic resource types.

Path parameters
organization_uuidstringRequired

UUID of the organization

resource_uuidstringRequired

UUID of the resource

Body
Responses
200
Successfully updated the stale caching settings for the resource.
application/json
put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 98

{
  "stale_caching": [
    "error",
    "timeout",
    "invalid_header",
    "http_500",
    "http_502",
    "http_503",
    "http_504"
  ]
}
200

Successfully updated the stale caching settings for the resource.

{
  "status": true,
  "data": {}
}

Range Based Caching

put

This setting is available in small and large resource types.

Path parameters
organization_uuidstringRequired

UUID of the organization

resource_uuidstringRequired

UUID of the resource

Body
status_range_based_cachingbooleanRequired

Enables or disables range based caching.

Example: true
Responses
200
Successfully updated the range based caching setting for the resource.
application/json
put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "status_range_based_caching": true
}
200

Successfully updated the range based caching setting for the resource.

{
  "status": true,
  "data": {}
}
  • PUTEdge Cache Expiration
  • PUTBrowser Cache Rules
  • PUTQuery String Caching
  • PUTETag verification
  • PUTError Status Code Cache Expiration
  • PUTShared Cache
  • PUTStale Cache
  • PUTRobots.txt file
  • PUTRange Based Caching

Robots.txt file

put

This setting is available in small and large resource types.

Path parameters
organization_uuidstringRequired

UUID of the organization

resource_uuidstringRequired

UUID of the resource

Body
resource_uuidstringRequired

UUID of the resource

status_robot_txtstring · enumRequired

Status of the robot.txt settings for the resource.

Possible values:
Responses
200
Successfully updated the resource configuration.
application/json
put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 53

{
  "resource_uuid": "text",
  "status_robot_txt": "enabled"
}
200

Successfully updated the resource configuration.

{
  "status": true,
  "data": {}
}