OutPut Cache is the caching technique to cache the static pages in ASP.NET.
Questions tagged [outputcache]
680 questions
2
votes
1 answer
What are alternative cache solutions to Output Cache in asp.net MVC3?
What are the alternative solutions to Output Cache in asp.net MVC3? I don't know whether its the only one or there are other alternative solutions and hence asked. This is just for gk, and not a technical question.
Thanks

Krunal
- 2,967
- 8
- 45
- 101
2
votes
1 answer
Removing a specific page from custom cache output provider in asp.net
I'm using asp.net 4.0 (Web Forms website) and I've implemented a custom disk based output provider which works fine in caching the pages on my site. The problem I'm getting however is that I cannot find a way to remove a specific page from the cache…

gices
- 103
- 1
- 1
- 5
2
votes
1 answer
Output cache in MVC
How can I get the dropbox items in cache, in MVC?
I have tried the following, but it calls the page function each time.
What could be the issue or the right way to do it?
Please suggest.
[OutputCache(Duration = 10, Location =…

amit patel
- 2,287
- 8
- 31
- 45
2
votes
2 answers
When using OutputCache with MVC, sub.domain.com gives me www.domain.com cached page
I have a single ASP.NET MVC app which uses areas to deliver different functionality depending which url is hit. For example
www.domain.com - Website Area
app.domain.com - Application Area
*.domain.com - Client Area
So, the point is that depending…

James
- 720
- 9
- 19
2
votes
1 answer
ASP.NET Outputcache when doing a ajax call and posting json
I'm trying to outputcache a action method in asp.net mvc. The method returns json and is called by jquery $.ajax, data in the call is json. How can I make the outputcache vary by the json sent to the method?

Erik Sundström
- 997
- 1
- 12
- 29
2
votes
1 answer
Applying multiple attributes for the OutputCache
i have the following search action method, currently i am applying the cache to only one search parameter which is causing some false results incase the user change the q2 or q3 parameters while keeping the same value for the q paramter so the…

John John
- 1
- 72
- 238
- 501
2
votes
3 answers
ASP MVC 3 OutputCache avoid cacheing current request
I started using OutputCache for my website.
The problem that I encounter is that when a user update an item I need to reset the cache for that item.
I did that using:
var urlToRemove = Url.Action("Details", "Dress", new {id =…

Radu D
- 3,505
- 9
- 42
- 69
2
votes
1 answer
ASP.net page output caching
In asp.net I can set the page output cache to store at the web server or at the browser level.
<%@ OutputCache Duration="#ofseconds"
Location="Any | Client | Downstream | Server | None | ServerAndClient %>
I have a couple of questions…

developer747
- 15,419
- 26
- 93
- 147
2
votes
1 answer
How to apply caching in helper method in asp.net mvc 2
I have a helper method in my application and i have applied output caching on it
[OutputCache(Duration = 3600, VaryByParam = "DetailsId")]
public static Dictionary GetData(int DetailsId)
{
}
but on every request this function is…

Fraz Sundal
- 10,288
- 22
- 81
- 132
2
votes
3 answers
How to access asp.net mvc route values in GetVaryByCustomString?
I'm running an asp.net mvc 2 site under .NET 3.5 and I'd like to have access to routing values in my GetVaryByCustomString handler in Global.asax. I'm unclear how (if at all) to access specific route values given the HttpContext passed to the…

DanP
- 6,310
- 4
- 40
- 68
2
votes
2 answers
Vary output caching on usercontrol by clientID
I have a user control which I would like to use output caching on, but it is used several times with different data.
I thought about using VaryByCustom and try to receive the ClientID of the control, but haven't been able to find a way.
Is there a…

Dofs
- 17,737
- 28
- 75
- 123
2
votes
0 answers
.NET 7 Output caching in IIS
I am using OutputCache in .NET7. Outputcache seems not working on IIS while it is working in my local or docker. Is there any configuration to set for IIS server?
builder.Services.AddOutputCache(options =>
{
options.AddBasePolicy(builder =>
…

Muratkscn
- 21
- 2
2
votes
1 answer
How to have ActionFilters and OutputCaching work together?
I have an ActionFilter that does logging. I want this to log requests and parameters that come in to the server. This works fine. However when I add OutputCaching, this will only log the first request and no others.
I even tried creating an…

Chris Marisic
- 32,487
- 24
- 164
- 258
2
votes
1 answer
How to mix outputcache with BeItMemcached? (or other cache provider)
I want to change the data source of the outputcache of asp .net, how can I do that?
I work with .net 2.0

Christophe Debove
- 6,088
- 20
- 73
- 124
2
votes
1 answer
Using Cache Storage in MVC2
I have a class that holds valid licenses for a user and every 15 minutes it is "validated" to ensure the current licenses are valid and add/remove any that may have changed.
Currently, this is accessed in my ApplicationController, which every other…

Rion Williams
- 74,820
- 37
- 200
- 327