Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

How Junos Content Encore (formerly MFC) behaves when the 'cache-age-default' is set to '0'



Article ID: KB26089 KB Last Updated: 05 Mar 2017Version: 3.0
This article provides information about the behavior of JCE, when the value of Origin-fetch Cache-age-default is set to zero.
Information about the behavior of Junos Content Encore, when the value of Origin-fetch Cache-age-default is set to zero.

The following scenario is when origin-fetch cache-age-default will be used:

If a client requests an object, which is not in the JCE cache, then the JCE will fetch the requested object from the origin. If the origin wants this object to be cached by the intermediate proxies/caches, then generally most of the web-servers will send an expiry time of the object as well. So, the intermediate proxies/caches are allowed to cache the object and serve from the object, till that expiry time. The web-servers generally send the expiry time in Expiry Info or the Cache-control header.

But, certain web servers (or origin servers) do not care to inform the expiry date; that is, the web-server (Origin-Server) does not send either the Expire or Cache-Control header. If the JCE receives a response, without the Expires/Cache-Control header, then the JCE will check if any cache-age-default value is configured in the namespace. If a value is configured, then JCE will assign this value as the expiry time of the object. 

JCE will use/apply the value that is configured in origin-fetch cache-age-default CLI, only when the origin does not send any expiry time for the object, either in the Expires or Cache-Control header. So, when origin-fetch cache-age-default is set to 0, then JCE will send the request to the origin, if the origin has not responded with either the Expiry or cache-control value in the previous response

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search