{"id":5755,"date":"2025-07-28T14:27:24","date_gmt":"2025-07-28T12:27:24","guid":{"rendered":"http:\/\/www.3dmediart.hr\/?p=5755"},"modified":"2026-03-18T19:15:13","modified_gmt":"2026-03-18T18:15:13","slug":"cache-control-2","status":"publish","type":"post","link":"http:\/\/www.3dmediart.hr\/?p=5755","title":{"rendered":"Cache-Control"},"content":{"rendered":"<p>The stale-if-error response directive indicates that the cache can reuse a stale response when an upstream server generates an error, or when the error is generated locally. The stale-while-revalidate response directive indicates that the cache could reuse a stale response while it revalidates it to a cache. If a request doesn&#8217;t have an Authorization header, or you are already using s-maxage or must-revalidate in the response, then you don&#8217;t need to use public.<\/p>\n<ul>\n<li>If the response becomes stale, it must be validated with the origin server before reuse.<\/li>\n<li>Text STOP to stop receiving messages.<\/li>\n<li>Browsers usually add no-cache to requests when users are force reloading a page.<\/li>\n<li>For SEO and caching assistance, contactex-Google SEO consultantsSearch Brothers.<\/li>\n<li>Different health concerns have been tied to ultra-processed food.<\/li>\n<li>Use a no-cache to make sure that the HTML response itself is not cached.<\/li>\n<\/ul>\n<h2>Response Directives<\/h2>\n<p>The HTTP Cache-Control header holds directives (instructions) in both requests and responses that control caching in browsers and shared caches (e.g., Proxies, CDNs). Responses for requests with Authorization header fields must not be stored in a shared cache; however, the public directive will cause such responses to be stored in a shared cache. There are no cache directives for clearing already-stored responses from caches on intermediate servers. The must-revalidate response directive indicates that the response can be stored in caches and can be reused while fresh.<\/p>\n<p>Caches are encouraged to treat the value as if it were 0 (this is noted in the Calculating Freshness Lifetime section of the HTTP specification). Usually, the revalidation is done through a conditional request. Cache that exists between the origin server and clients (e.g., Proxy, CDN).<\/p>\n<h2>Request directives<\/h2>\n<p>Note that s-maxage or must-revalidate also unlock that restriction. If the sense of &#8220;don&#8217;t cache&#8221; that you want is actually &#8220;don&#8217;t store&#8221;, then no-store is the directive to use. It is a criterion for whether a response is fresh or stale. However, the cached response is not always reused as-is.<\/p>\n<h2>Directives<\/h2>\n<p>Imagine that clients\/caches store a fresh response for a path, with no request flight to the server. The no-cache request directive asks caches to validate the response with the origin server before reuse. If you forget to add private to a response with personalized content, then that response can be stored in a shared cache and end up being reused for multiple users, which can cause personal information to leak. HTTP allows caches to reuse stale responses when they are disconnected from the origin server. The cache stores the response for five minutesand revalidates before reuse once stale. The public directive marks a response as eligiblefor storage in shared caches.<\/p>\n<h2>Repository files navigation<\/h2>\n<p>A request carrying no-cache requires the cache tovalidate the stored response with theorigin before serving the copy. The cache returns thestored copy only if the response will stay fresh forthe additional period. The max-stale directive signals acceptance of aresponse whose Age has exceeded the freshnesslifetime by up to the given number of seconds. Both requests and responses usethis header to coordinate Caching behavior acrossthe entire delivery chain.<\/p>\n<p>The must-revalidate directive allows caches to servethe response while fresh. The cachestill stores the response, enablingconditional requests withETag or Last-Modified. The no-store directive asks caches not to storethe request or the corresponding response. The table below shows which directives apply torequests, responses, or both. If you don&#8217;t want a response stored in caches, use the no-store directive. Clients can use this header when the origin server is down or too slow and can accept cached responses from caches even if they are a bit old.<\/p>\n<h2>Folders and files<\/h2>\n<p>The Cache-Control <a href=\"https:\/\/thalassa-ile-oleron.com\/en-in\/\">https:\/\/thalassa-ile-oleron.com\/en-in\/<\/a> header coordinates cachingacross browsers, proxies, and CDNs through a set ofcomposable directives. A page with a longmax-age is re-fetched less often, whileno-cache signals frequent content changes andwarrants more frequent crawling. Google&#8217;s crawling infrastructure implementsheuristic HTTP caching.The max-age directive helps Googlebotdetermine recrawl frequency. The browser and any sharedcache store this response for one year withoutrevalidation. Once the background revalidation completes, the cachereplaces the stale entry with the fresh response.<\/p>\n<p>Test live and from different countries the HTTP responses, redirect chains and status codes of one or multiple URLs. A CDN-targeted policy giving the shared cache aten-minute window while the browser cache gets oneminute. The parameter defineshow many additional seconds the stale response remainsacceptable. When conflicting directivesappear, the most restrictive combination applies. No-cache could cause revalidation, and the client will correctly receive a new version of the HTML response and static assets.<\/p>\n<ul>\n<li>Once the background revalidation completes, the cachereplaces the stale entry with the fresh response.<\/li>\n<li>The no-store response directive indicates that any caches of any kind (private or shared) should not store this response.<\/li>\n<li>The nocache tool tries to minimize the effect an application has onthe Linux file system cache.<\/li>\n<li>The public directive marks a response as eligiblefor storage in shared caches.<\/li>\n<\/ul>\n<h2>Response directives<\/h2>\n<p>Stale responses are served for up to 30seconds while the CDN revalidates in the background. The parameter sets the number of secondsbeyond the freshness lifetime during which the staleresponse remains usable as a fallback. Cachesskip conditional requests forimmutable resources, eliminating revalidation roundtrips for assets like versioned JavaScript bundles orfingerprinted images. The immutable directive guarantees the response bodywill not change during the freshness lifetime.<\/p>\n<h2>Using Food Scores<\/h2>\n<p>Must-revalidate is a way to prevent this from happening &#8211; either the stored response is revalidated with the origin server or a 504 (Gateway Timeout) response is generated. It does this by requiring caches to revalidate each request with the origin server. This section lists directives that affect caching \u2014 both response directives and request directives. Cache storage isn&#8217;t required to remove stale responses immediately because revalidation could change the <a href=\"https:\/\/leatherial.com\/en-in\/\">https:\/\/leatherial.com\/en-in\/<\/a> response from being stale to being fresh again. Ask the origin server whether or not the stored response is still fresh.<\/p>\n<h2>Response Directives<\/h2>\n<p>The response no-cache directive requires caches torevalidate the stored response with theorigin before every reuse. The max-age directive tells caches to return a storedresponse only if the response is no older than thespecified number of seconds. The no-store request directive allows a client to request that caches refrain from storing the request and corresponding response \u2014 even if the origin server&#8217;s response could be stored. Indicates that caches can store this response and reuse it for subsequent requests while it&#8217;s fresh. Responses carrying anAuthorization header are not storedby shared caches unless the public directive ispresent.<\/p>\n<h2>Request directives<\/h2>\n<p>Of foods eaten by children are ultra-processed Different health concerns have been tied to ultra-processed food. These facts aren\u2019t just food for thought, they\u2019re a call to action! We inform consumers about the health risks of certain highly processed foods made with chemicals and other ingredients of concern. Our work pushes for a more humane, sustainable food system. We uncover the hidden, harmful additives, contaminants, and chemicals that don\u2019t belong in your food.<\/p>\n<h2>Folders and files<\/h2>\n<p>If the origin is unreachable, thecache returns a 504 instead of serving stalecontent. The timerstarts from the moment the origin creates the response,so transit time and time spent in intermediate cachescount against the budget. The no-transform directive forbids intermediariesfrom modifying the response body, such as recompressingimages or converting media formats. To prevent a cache from storing a response atall, use no-store instead. Multiple directives are separated by commas in asingle header value or split across multipleCache-Control headers.<\/p>\n<div style='text-align:center'><iframe width='567' height='317' src='https:\/\/www.youtube.com\/embed\/w5Sag5CmqTg' frameborder='0' alt='aviator game download original apk' allowfullscreen><\/iframe><\/div>\n<h2>About EWG&#8217;s Food Scores<\/h2>\n<p>Store a response in caches when the response is cacheable. It can store and reuse personalized content for a single user. Note however,that rsync uses sockets, so if  you try a nocache rsync, onlythe local process will be intercepted. Please note that nocache will only build on a system that hassupport for the posix_fadvise syscall and exposes it, too. The nocache tool tries to minimize the effect an application has onthe Linux file system cache.<\/p>\n<p>It stores a single response and reuses it with multiple users \u2014 so developers should avoid storing personalized contents to be cached in the shared cache. The command make install will install the shared library, manpages and the nocache, cachestats and cachedel commandsunder \/usr\/local. The stale-if-error directive allows caches to servea stale response when the origin returns an errorstatus (500, 502, 503, or 504) or isunreachable. The proxy-revalidate directive works identically tomust-revalidate, except the requirement applies onlyto shared caches. The response no-transform directive preventsintermediaries from altering the response body beforeforwarding, whether the intermediary caches thecontent or not. The max-age directive declares the number of secondsthe response remains fresh after generation.<\/p>\n<h2>Cache directives<\/h2>\n<p>In general, when pages are under Basic Auth or Digest Auth, the browser sends requests with the Authorization header. If the response becomes stale, it must be validated with the origin server before reuse. Implementation that holds requests and responses for reusing in subsequent requests. If you want to change this threshold, you can supply theenvironment variable NOCACHE_MAX_FDS and set it to a higher (or lower) value.It should specify a value one greater than the maximum file descriptor thatwill be handled by nocache. With nocache, the original caching state will be preserved. For debugging purposes, you can specify a filename that nocache should logdebugging messages to via the -D command line switch, e.g. use nocache -D \/tmp\/nocache.log \u2026.<\/p>\n<p>For SEO and caching assistance, contactex-Google SEO consultantsSearch Brothers. A static asset served with a long freshness lifetimeand the immutable flag. Portions of this content are \u00a91998\u20132026 by individual mozilla.org contributors. This page was last modified on Nov 16, 2025 by MDN contributors. For content that&#8217;s generated dynamically, or that&#8217;s static but updated often, you want a user to always receive the most up-to-date version.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The stale-if-error response directive indicates that the cache can reuse a stale response when an upstream server generates an error, or when the error is generated locally. The stale-while-revalidate response directive indicates that the cache could reuse a stale response while it revalidates it to a cache. If a request doesn&#8217;t have an Authorization header, &hellip; <a href=\"http:\/\/www.3dmediart.hr\/?p=5755\" class=\"more-link\">Nastavi \u010ditati<span class=\"screen-reader-text\"> &#8220;Cache-Control&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"_links":{"self":[{"href":"http:\/\/www.3dmediart.hr\/index.php?rest_route=\/wp\/v2\/posts\/5755"}],"collection":[{"href":"http:\/\/www.3dmediart.hr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.3dmediart.hr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.3dmediart.hr\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.3dmediart.hr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5755"}],"version-history":[{"count":1,"href":"http:\/\/www.3dmediart.hr\/index.php?rest_route=\/wp\/v2\/posts\/5755\/revisions"}],"predecessor-version":[{"id":5756,"href":"http:\/\/www.3dmediart.hr\/index.php?rest_route=\/wp\/v2\/posts\/5755\/revisions\/5756"}],"wp:attachment":[{"href":"http:\/\/www.3dmediart.hr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.3dmediart.hr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5755"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.3dmediart.hr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}