OutPut Cache is the caching technique to cache the static pages in ASP.NET.
Questions tagged [outputcache]
680 questions
5
votes
3 answers
How can I view the contents of the ASP.NET OutputCache?
Is there any way that I can list the pages which are currently stored in the OutputCache?
Just a list of paths would do, but if there's a way to get more information about each item (expiry etc), then all the better.

Mark Bell
- 28,985
- 26
- 118
- 145
5
votes
1 answer
Can I use OutputCache with file dependency in ASP.Net MVC?
I have a child action method. Can I use OutputCache with file dependency?I can see only SQLDependency property in System.Web.Mvc.OutputCacheAttribute.

Arindam
- 320
- 2
- 12
5
votes
1 answer
Can I use VaryByCustom with a Sitecore 7 Controller Rendering?
I have a Sitecore 7 Controller Rendering. I need to vary the OutputCache by a custom method.
The rendering is currently set to "Cachable", "VaryByData" and "VaryByParm" in Sitecore.
I've added an output cache attribute to my action, and set a custom…

NeilD
- 2,278
- 3
- 24
- 28
5
votes
2 answers
Caching not working right in my ASP.NET MVC website?
i'm trying to use OutputCaching in my ASP.NET MVC website. Problem is, when i try and change the value of one my querystring params, it's returning the data for the first item that was requested!
Here's my code (with the param names changed)…

Pure.Krome
- 84,693
- 113
- 396
- 647
5
votes
1 answer
Asp.net global output cache
Last few days I thinkin about output cache in asp.net. In my task I need to implement output cache for the very big project. After hours of searching I did not find any examples.
Most popular way to use output cache is declarative, in this case you…

Kirill Peshkin
- 1
- 4
5
votes
3 answers
Abort OutputCache duration programmatically in asp.net mvc
I'm using the OutputCache attribute to cache my action's html output at the server-side.
Fine, it works, but now I have a situation where the content changes rarely, but when it does, it's critical for the user to see the new data the very next…

andrecarlucci
- 5,927
- 7
- 52
- 58
5
votes
2 answers
Codeigniter caching - suggestions to refresh after new post
I have a blog-type app built on CI 2.1.0.
When I add
$this->output->cache(5);
to my controller, CI correctly caches the page, and it loads quickly.
My issue is that if someone comments on that post, the comment will not show until the cache…

pepe
- 9,799
- 25
- 110
- 188
4
votes
2 answers
How to supress header Vary:* when using OutputCacheProfiles
Using any of the OutputCacheProfiles given below

amit_g
- 30,880
- 8
- 61
- 118
4
votes
1 answer
Cache home page for non-authenticated users in ASP.NET MVC 3
My website have a home page, and I would like to cache that page for anonymous users, and set it as "private" for authenticated users (so they save it on their computers, nowhere else).
So, if the user is anonymous I want to save the page in the…

vtortola
- 34,709
- 29
- 161
- 263
4
votes
1 answer
OutputCache attribute and jQuery Ajax not caching
I have a simple MVC3 Controller Action like this
[HttpGet]
[OutputCache(Duration = 1200,Location=System.Web.UI.OutputCacheLocation.Server)]
public string GetTheDate()
{
return DateTime.Now.ToString();
}
And I call it from jQuery Ajax like…

K. Bob
- 2,668
- 1
- 18
- 16
4
votes
1 answer
OutputCache does not cache RedirectResult
It seems outputcache filter does not apply when a controller action returns a RedirectResult result.
Here is how to reproduce the problem with ASP.Net MVC3 default Internet Web Application :
In Web.config :

80n
- 43
- 4
4
votes
1 answer
Cache key length in asp.net
I was investigating the MVC3 source and came across the following (in OutputCacheAttribute.cs) which is called when generating a key to use for output caching:
// The key is typically too long to be useful, so we use a cryptographic hash
…

Paul Hiles
- 9,558
- 7
- 51
- 76
4
votes
0 answers
Programmatically access ASP.NET MVC OutputCache
I know it's called 'Output' cache, but is it possible at all to programmatically add/get/remove objects to the ASP.NET MVC OutputCache?
I do not want to cache Controller output, but only specific objects, which would be used by this and other…

Anon
- 41
- 2
4
votes
1 answer
Outputcache attribute on clientside with partial pages'
I a partial page creating the menu for application. I am calling the menu partial view using renderaction. I want to store this partial page on client side by doing this
[OutputCache(Duration=7200, Location =OutputCacheLocation.Client, NoStore=…

Tassadaque
- 8,129
- 13
- 57
- 89
4
votes
2 answers
Output (server-side) caching of ashx files
I am trying to enable output caching on all ashx files in my site. I'm trying to keep the server from generating the file on each request - NOT trying to tell the browser to cache the file.
I've distilled my ashx file down to this simple…

jaminto
- 3,895
- 3
- 32
- 36