OutPut Cache is the caching technique to cache the static pages in ASP.NET.
Questions tagged [outputcache]
680 questions
2
votes
1 answer
asp.net apache2/nginx OutputCache problem
I have a problem regarding the outputcache settings in web.config file.
I am using Nginx 0.8.53 with Fast CGI, on openSuse 11.3
For dynamic pages, I created OutputCacheProfiles which are working perfectly on visual studio environment in windows.…

dogus
- 21
- 3
2
votes
0 answers
OutputCaching firefox 3.6.12 problem asp mvc 2
On my asp.mvc app I use OutputCaching
[HttpGet, OutputCache(Duration=1800, VaryByParam="*", VaryByHeader="Cookie", Location=System.Web.UI.OutputCacheLocation.Server)]
The content is versioned by params and cookie. When I would like new content…

marcinn
- 1,879
- 2
- 22
- 46
2
votes
1 answer
Insert to asp.net mvc outputcache from console program
I am using Redis for asp.net MVC output cache. Some of my views take a fair bit of processing, currently I have an overnight process that generates the required data for the views and puts it in Redis cache so the views can render much quicker,…

Darren
- 9,014
- 2
- 39
- 50
2
votes
1 answer
OutputCache not working correctly -> ASP.NET MVC5
My output caching doesn't appear to be working as expected
This is a controller method to return the default page for my website.
I have cached it for 40secs (test -> in live it is cached for much longer)
[OutputCache(Duration = 40, Location =…

martin
- 570
- 3
- 8
- 20
2
votes
0 answers
Best MVC views Caching Policy (OutputCache Policy) in large amount of data (views)
I'm using DonuteCache (DonutOutputCache attribute which is better and more optimized than default MVC OutputCache attribute).I usually cache my views by one or more parameters so if the parameters was so vary I'd have lots of view to be cached.
In…

Code_Worm
- 4,069
- 2
- 30
- 35
2
votes
1 answer
.NET Ignite cache expiry policy not working
I am trying to set a global expiring policy to a Ignite cache but it doesn't work, all the entries are still there even after the timeout value.
This is how I am implementing it:
var igniteCache = this.igniteInstance.GetOrCreateCache

Federico
- 333
- 1
- 4
- 19
2
votes
0 answers
GetVaryByCustomString in OWIN based ASP.NET MVC
I'm trying to cache an output which should by vary by the logged in user in a MVC 5 OWIN (Self Hosted) based application.
I want to know how can I override the GetVaryByCustomString method to accomplish this?

mrtaikandi
- 6,753
- 16
- 62
- 93
2
votes
1 answer
Caching of response messages
We do a lot of REST calls and would like to cache much of those calls. What are our current options? Core does not support Output Caching at the moment, so can we use Response Caching or Distributed Caching for this? If Response Caching, can the IIS…

user1340582
- 19,151
- 35
- 115
- 171
2
votes
1 answer
Output caching a custom control (server control)
I've come across hints about output caching a server control, but have yet to find a definitive answer to: Can the output of a server control be cached (in the same way that user controls are cached)?
The suggestions I've come across involve…

ByteCrunchr
- 51
- 5
2
votes
2 answers
Prevent returned view being cached when an error occurs
Is there a way to to prevent a page from being cached when the OutputCache attribute has been set on an action?
This is so that, when the page is subsequently hit, it will not store the generic error page that was returned previously.
An example…

Dan Atkinson
- 11,391
- 14
- 81
- 114
2
votes
1 answer
ResponseCache: GetVaryByCustomString for .net 5 or .net Core 1.0?
I am trying figure out how to implement GetVaryByCustomString function for asp.net core 1.0.
Have you implemented that kind of functionality for asp.net core 1.0?
Thanks

Barbaros Alp
- 6,405
- 8
- 47
- 61
2
votes
1 answer
Outputcache IIS with MVC and ASP.NET Core in Azure
I know that OutputCache is not ready for ASP.NET Core, but I have read about OutputCache and you can configure it in the web.config like this:
…

chemitaxis
- 13,889
- 17
- 74
- 125
2
votes
3 answers
OutputCache and A potentially dangerous Request
I have enabled OutputCache, and are using the following attributes:
[OutputCache]
[ValidateInput(false)]
But I'm getting the following error:
[HttpRequestValidationException (0x80004005): A potentially dangerous
Request.QueryString value was…

Dirk Boer
- 8,522
- 13
- 63
- 111
2
votes
1 answer
Multiple OutputCache in MVC
Can we have multiple OutputCache defined for an action? For ex. say I want to store OutputCache copy one in Server and another one in Client. I know that this we can do with Location=OutputCacheLocation.ServerAndClient but say I want to specify…

Guruprasad J Rao
- 29,410
- 14
- 101
- 200
2
votes
0 answers
OutputCacheProvider Set/Add methods never being called
I have a basic implementation of an OutputCacheProvider. Get is being called but Add and Set are never called. Any ideas?

devlife
- 15,275
- 27
- 77
- 131