Does OutputCache work across user sessions?

Posted on 2008-11-19
Last Modified: 2013-11-07
I have a .Net 2.0 site and am investigating caching.  Using the OutputCache directive seems to work well but there is one thing I am unsure of.

Consider two website users UserA & UserB.  If UserA browses to a page with OutputCache turned on, the server executes the code caches the HTML in the page.

If UserB then requests the same page, does the server have to re-execute the page (because it is a different user) or does it use the same cached copy from when UserA accessed the page?

So I guess what I am asking, is OutputCache tied to a User Session or to the Application?
Question by:wilsonrx
    LVL 9

    Accepted Solution

    Its tied to the application

    Author Closing Comment

    Thanks amx.  I hoped thats what the answer was!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now