Cookie Base Cache
Control CDN caching behavior by varying cache entries based on specific cookie values.
The Cookie Base Cache feature allows you to include selected cookies in the CDN cache key for Dynamic Content Acceleration resources. This ensures that different user sessions or states receive the correct cached response without disabling caching entirely.
How Cookie Base Cache Works
When Cookie Base Cache is enabled:
The CDN inspects incoming requests for the configured Cookie Key values.
The specified cookies are included as part of the cache key.
Requests with different cookie values are cached separately.
Requests without the configured cookies follow the default cache behavior.
This allows dynamic and personalized content to be cached safely without serving incorrect responses across users.
Configure Cookie Base Cache
You can configure this feature from the Medianova Cloud Panel.
Each unique cookie value creates a separate cache entry.
Cookie matching is based on the cookie name only; values are evaluated dynamically.
This feature affects cache key generation, not cache bypass.
Use together with Disallow Cookie Base Cache for advanced session-aware caching strategies.
Adding too many cookies may increase cache fragmentation.
Common Use Cases
Cache dynamic pages per user role or session type
Serve different cached responses for logged-in vs logged-out users
Safely cache HTML or JSON responses that depend on cookie state
Last updated
Was this helpful?
