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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:49:43+00:00 2026-05-24T05:49:43+00:00

I have a particular HTTP response which I don’t want cached because it has

  • 0

I have a particular HTTP response which I don’t want cached because it has private/sensitive data in it

I’m already setting Cache-Control to no-store,
which should handle clients supporting HTTP/1.1.

How do I use the Expires header to do the same for HTTP/1.0? Should I just set it with an arbitrary timestamp from 1970 or something? Is there a special value to tell it never to 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-24T05:49:44+00:00Added an answer on May 24, 2026 at 5:49 am

    The HTTP RFC says:

    To mark a response as “already expired,” an origin server sends an Expires date that is equal to the Date header value.

    You should set the expires header to a date in the past. And you should also set the must-revalidate flag on the Cache-Control header.

    Expires: Fri, 01 Jan 1990 00:00:00 GMT
    Cache-control: no-cache, must-revalidate

    You can find a good article dealing with caching issues on the doctype wiki:

    Setting an Expires header in the past ensures that HTTP/1.0 and
    HTTP/1.1 proxies and browsers will not cache the content. The
    Cache-control directive also tells HTTP/1.1 proxies not to cache the
    content. Even if proxies may be configured to return stale content
    when they should not, the must-revalidate re-affirms that they SHOULD
    NOT do it.

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

Sidebar

Related Questions

The JQuery has method effectively selects all elements where they have particular descendants. I
I have a particular web application that like most others, has to account for
Greetings, I have a particular object which can be constructed from a file, as
I have a WCF client/server app which is communicating over HTTP using the WSHttpBinding.
I have a WCF service which has one method returning a stream. [ServiceContract] public
I have a particular PHP page that, for various reasons, needs to save ~200
I have a particular application that needs to calculate something very specific, and while
I have a particular situation: a service started by a broadcast receiver starts an
I have a particular method that is occasionally crashing with an ArgumentException: Destination array
I have one particular FLA that is crashing every time I try to compile

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.