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 3979334
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:09:26+00:00 2026-05-20T05:09:26+00:00

The cache control header no-cache, must-revalidate, private allows browsers to cache the resource but

  • 0

The cache control header “no-cache, must-revalidate, private” allows browsers to cache the resource but forces a revalidate with conditional requests. This works as expected in FF, Safari, and Chrome.

However, IE7+8 does not send a conditional request, that is, “If-Modified-Since” is missing in the request header and hence the server responds with HTTP/200 instead of HTTP/304.

Here are the full server response headers:

Last-Modified: Wed, 16 Feb 2011 13:52:26 GMT
Content-type: text/html;charset=utf-8
Content-Length: 10835
Date: Wed, 16 Feb 2011 13:52:26 GMT
Connection: keep-alive
Cache-Control: no-cache, must-revalidate, private

This seems like an IE bug, but I haven’t found anything related on the web, so I wonder whether maybe the absence or existence of another header makes IE behave strangely?

A good discussion of the difference between no-cache and max-age: What's the difference between Cache-Control: max-age=0 and no-cache?

  • 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-20T05:09:27+00:00Added an answer on May 20, 2026 at 5:09 am

    I’ve eventually figured it out. Here is an explanation and a tested solution.

    The following site confirms my observation: http://blog.httpwatch.com/2008/10/15/two-important-differences-between-firefox-and-ie-caching/

    It says that IE does not locally store pages with the ‘no-cache’ directive and hence always sends an unconditional request.

    There’s also a MS support article – https://support.microsoft.com/help/234067/ – which confirms this:

    “Internet Explorer supports the HTTP 1.1 Cache-Control header, which prevents all caching of a particular Web resource when the no-cache value is specified…”

    This behavior is not entirely wrong — but it is not what RFC 2616 (sec. 14.9.1) intended. About ‘no-cache’ it says “… a cache MUST NOT use the response to satisfy a subsequent request without successful revalidation with the origin server.” So the response CAN be cached but MUST revalidate it. The major browsers, except for IE, do cache the response and revalidate it. To prevent storing the request, there’s the ‘no-store’ Cache-Control directive.

    In summary, IE treats ‘no-cache’ as ‘no-store’.

    And here’s the solution to enable conditional requests for IE and the other browsers in a consistent way:

    Don’t use no-cache, but instead set the Expires header to the past (or -1, which has the same effect). IE, as well as the other major browsers, will then send conditional requests. (Note, you should also be aware of the IE Vary header bug, which prevents caching.)

    These are the critical header fields:

    Last-Modified: Wed, 16 Feb 2011 13:52:26 GMT
    Expires: -1
    Cache-Control: must-revalidate, private
    
    • Last-Modified (or ETag) is needed as a validator
    • Expires -1 tells that the resource is stale and must be revalidated
    • Cache-Control must not include no-cache or no-store
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

header(Pragma: public); header(Expires: 0); header(Cache-Control: must-revalidate, post-check=0, pre-check=0); header(Cache-Control: private,false); header(Content-type: application/force-download); header(Content-Disposition: attachment;
The current PHP code being used is : header(Pragma: public); header(Expires: 0); header(Cache-Control: must-revalidate,
Here is my try: @header(Content-type: text/html; charset=utf-8); @header(Location:/index.php); @header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1 @header(Expires:
The header Cache-Control: max-age=0 implies that the content is considered stale (and must be
If I set this for cache control on my site: Header unset Pragma FileETag
I want to apply output cache programmatically to a particular control. But when I'm
I am using the following code to stream a pdf to the browser: header(Cache-Control:
I have a ruby cgi script which writes it output like this: cgi.out(Cache-Control =>
To improve performances, I'd like to add a fairly long Cache-Control (up to 30
I added a counter cache but can't get it to update. But I can

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.