Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6616399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:34:40+00:00 2026-05-25T20:34:40+00:00

I have a mess with this header, I have read that Cache-Control:must-revalidate oblige to

  • 0

I have a mess with this header, I have read that Cache-Control:must-revalidate oblige to validate all requests with the source before serving a cached item, but just the stale ones? or all no matter if stale or fresh? I have read both things in different places.

What is the difference with Cache-Control:no-cache ? Because these headers look equivalent to me.

UPDATE 1: I have read this from a book:

The Cache-Control: must-revalidate response header tells the cache
to bypass the freshness calculation mechanisms and revalidate on every
access
:

@Peter O. has pointed out what the RFC says. So that old book is wrong.

UPDATE 2: In this tutorial : http://www.mnot.net/cache_docs/

no-cache — forces caches to submit the request to the origin server
for validation before releasing a cached copy, every time. This is
useful to assure that authentication is respected (in combination with
public), or to maintain rigid freshness, without sacrificing all of
the benefits of caching.

must-revalidate — tells caches that they must
obey any freshness information you give them about a representation.
HTTP allows caches to serve stale representations under special
conditions; by specifying this header, you’re telling the cache that
you want it to strictly follow your rules.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:34:41+00:00Added an answer on May 25, 2026 at 8:34 pm

    Section 14.9.4 of HTTP/1.1:

    When the must-revalidate directive is present in a response
    received by
    a cache, that cache MUST NOT use the entry after it becomes
    stale

    to respond to a subsequent request without first revalidating it
    with the
    origin server

    Section 14.8 of HTTP/1.1:

    If the response includes the “must-revalidate” cache-control
    directive, the cache MAY use that response in replying to a
    subsequent request. But if the response is stale, all caches
    MUST first revalidate it with the origin server…

    So it appears that only stale responses must be revalidated if
    must-revalidate is received.

    For no-cache, see section 14.9.1:

    If the no-cache directive does not specify a field-name [which is
    the case
    here], then a cache MUST NOT use the response to satisfy a
    subsequent
    request without successful revalidation with the origin server…

    Thus, no-cache applies both to fresh and stale responses.

    EDIT:

    This phrase may be relevant here (section 13.3):

    When a cache has a stale entry that it would like to use as a response
    to a client’s request, it first has to check with the origin server
    (or possibly an intermediate cache with a fresh response) to see if
    its cached entry is still usable.

    So, must-revalidate is probably relevant when the cache has intermediate
    caches, since otherwise the cache can check the intermediate cache for a
    fresh response rather than check the origin server directly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this web application that has grown to an unmanageable mess. I want
I have a very large project with tons of convoluted header files that all
I have a header file that has some static variables for all of my
If I have a structure like this: <div class=header> <div class=logo>[logo]</div> <div id=navigation class=cf>
I have a class Page() that I can use to print the (layout) header
I have not had to mess with mailto links much. However I now need
I have the following code: public void post(String message) { final String mess =
Let's say I have a string holding a mess of text and (x)HTML tags.
Have you guys had any experiences (positive or negative) by placing your source code/solution
I have a website which maintenance I've inherited, which is a big hairy mess.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.