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

  • Home
  • SEARCH
  • 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 9209535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:51:57+00:00 2026-06-18T00:51:57+00:00

I have code that is cached this way: [OutputCache(Duration=3600, Location=OutputCacheLocation.Client)] Now, I don’t exactly

  • 0

I have code that is cached this way:

[OutputCache(Duration="3600", Location=OutputCacheLocation.Client)]

Now, I don’t exactly know how this output cache works. Where exactly does it keep the copy of a page? And what are the differences between OutputCacheLocation.Client and OutputCacheLocation.Browser?

  • 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-06-18T00:51:58+00:00Added an answer on June 18, 2026 at 12:51 am

    Where exactly does it keep the copy of a page?

    The location of where the cache is stored is determined by Location property of the OutputCacheAttribute. In your case you set Location=OutputCacheLocation.Client so it will keep the cache on the client browser.

    And what are the differences between OutputCacheLocation.Client and
    OutputCacheLocation.Browser?

    OutputCacheLocation.Browser doesn’t exist. It’s an invalid value. The documentation of the OutputCacheLocation enumeration type contains the possible values along with a description of its usage:

    • Any – The output cache can be located on the browser client (where the request originated), on a proxy server (or any other server)
      participating in the request, or on the server where the request was
      processed. This value corresponds to the HttpCacheability.Public
      enumeration value.
    • Client – The output cache is located on the browser client where the request originated. This value corresponds to the
      HttpCacheability.Private enumeration value.
    • Downstream – The output cache can be stored in any HTTP 1.1 cache-capable devices other than the origin server. This includes
      proxy servers and the client that made the request.
    • Server – The output cache is located on the Web server where the request was processed. This value corresponds to the
      HttpCacheability.Server enumeration value.
    • None – The output cache is disabled for the requested page. This value corresponds to the HttpCacheability.NoCache enumeration value.
    • ServerAndClient – The output cache can be stored only at the origin
      server or at the requesting client. Proxy servers are not allowed to
      cache the response. This value corresponds to the combination of the
      HttpCacheability.Private and HttpCacheability.Server enumeration
      values.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have code that looks like this: obj.foo(); // obj might, or might not
I have code that looks like this: template<class T> class list { public: class
I have code that I want to look like this: List<Type> Os; ... foreach
My code already has things like this in the controller: [OutputCache(Duration = 86400] public
I have code in global.asax that sets some things in cache with CacheItemRemovedCallback. When
I have code that generates a List<string[]> variable but can't quite figure out how
I have code that looks more or less like the code below but it
I have code that sends web requests through two parallel for each loops. Will
I have code that reloads images via HTTP from the main thread and displays
I have code that uses Win API function RegSaveKeyEx to save registry entries to

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.