What’s the best method for forcing cache expiration in ASP.NET?
Suppose I have an ASP.NET application running across several web servers behind a load balancer:
Suppose I have an ASP.NET application running across several web servers behind a load balancer:
In my application i have used Generic handler to serve requests.
There are several questions about leveraging browser caching but I didn’t find anything useful for how to do this in an ASP.NET application. Google’s Pagespeed tells this is performance biggest problem.
So far I did this in my web.config:
Background story:
I have some website which requires a logon and shows sensitive information.
When you add an item to the System.Web.Caching.Cache with an absolute expiration date, as in the following example, how does Asp.Net behave? Does it:
I’m using the ASP.net cache in a web project, and I’m writing a “status” page for it which shows the items in the cache, and as many statistics about the cache as I can find. Is there any way that I can get the total size (in bytes) of the cached data? The size of each item would be even better. I want to display this on a web page, so I don’t think I can use a performance counter.
I read somewhere in the Microsoft documentation that the content of the ASP.NET’s web.config is cached. If that is true, where is it cached – in memory or on disk?
I recently asked a question about caching application data in an ASP.NET MVC WebAPI application and it led me to a new question. What are the pros/cons of different caching methods available in ASP.NET?