OutPut Cache is the caching technique to cache the static pages in ASP.NET.
Questions tagged [outputcache]
680 questions
0
votes
0 answers
asp.net mvc output caching issue with non standard url dialect
I have an unusual issue that I have ran in to with asp.net mvc caching. I have applied the caching attributes to my controller actions. It works nicely on URL's which are standard alphanumeric url's eg.…

amateur
- 43,371
- 65
- 192
- 320
0
votes
1 answer
some questions with asp.net mvc output caching
I am working with asp.net mvc 4 output caching and for some reason I cant get it working. What I am looking to do is standard but the output caching never kicks in. I think it may be due to cookies being changed and therefore not caching. I want…

amateur
- 43,371
- 65
- 192
- 320
0
votes
2 answers
exception on use of Html.Action when controller is decorated with outputcache attribure
An exception is thrown when I call Html.Action from a view when the controller is decorated with the OutputCache attribute. But when I remove the attribute from the controller everything works as expected.
I do not want to remove the…

that guy over there
- 76
- 1
- 1
- 8
0
votes
0 answers
ASP.NET Output Cache tag causing issues
I'm trying to cache a ascx control in .NET because it's slowing down the website - it works for a few seconds well up to a minute but after that it breaks the main menu of the website and squashes it together.
<%--<%@ OutputCache…

mjcoder
- 1,009
- 9
- 25
- 45
0
votes
1 answer
Can I use OutputCache with more than one VaryBy for complex situations?
Can I do this?
[OutputCache(Duration = 111, VaryByParam = "id;category", VaryByCustom = "auth", VaryByHeader = "X-Requested-With")]
All these parameters will be used?
Or will MVC just simply ignore all except VaryByCustom for example?

shemanov
- 123
- 3
- 7
0
votes
1 answer
How ASP.net MVC OutputCacheLocation.Server works?
I have this question and I would like to know if it is management by IIS or Asp.net Framework which save it on server disk or in-memory.
I'm studying Azure Shared Caching looking for OutputCache and save data fetch from database resources.
At my…

Alexsandro
- 1,191
- 1
- 14
- 22
0
votes
1 answer
Extract html from OutputCache Buffer
I try to intercept textraw from my Custom OutputCacheProvider CacheEntry Buffer.
when I use cacheEntry.ResponseElements.First() I get the Half of my html page, but when I try to concat all chunck, I've get a crapy response (looks like binary…

Christophe Debove
- 6,088
- 20
- 73
- 124
0
votes
1 answer
Output Caching pages with user specific information
We have several sites that are mostly content managed using a sql database backend. these sites are most of the time serving up static information unless users change the content by voting or updating (similar to SO). These sites all have master…

Sheff
- 3,474
- 3
- 33
- 35
0
votes
1 answer
Programmatically caching a bunch of pages all at the same time using the Output Cache
I have an MVC4 website and I'm using the OutputCache to cache the result of a view that displays multiple pages of ranked results. The cached output varies on the Page parameter. The rankings are a function of time, so the results for any given…

w.brian
- 16,296
- 14
- 69
- 118
0
votes
1 answer
ASP.NET MVC4 output caching to prevent duplicate insertions in database
I am working currently on an ASP.NET MVC4 web application and currently working on how I can prevent the users from inserting duplicate entries in the db , when a user submits an entry and then again presses the back button and submits the same data…

Vineet
- 12
- 8
0
votes
2 answers
SQL cache dependency: Poll specific time of day
We want to improve the performance of our WCF service by introducing output caching.
For each different URL (varyByParam="none" varyByCustom="RawUrl") we want to cache the result as long as the database table FooBar has not changed.
However, we want…

D.R.
- 20,268
- 21
- 102
- 205
0
votes
1 answer
outputcache a site from console app
I want to run a consol app that calls a website on all outputcacheing pages so that all the cached paged will be cached for the user. When using the browser the page caches correctly but I want to be able to run a function that caches all the pages…

user473104
- 301
- 2
- 6
- 17
0
votes
1 answer
Outputcache for two parameters, custom and Encoding
Is there a way to use ASP.NET Outputcache for page for both:
VaryByContentEncoding - whether the browser support gzip or not
By custom param, in my case country which I get from using HttpContext.Current.Request.UserLanguages; and getting the…

Liron Harel
- 10,819
- 26
- 118
- 217
0
votes
0 answers
VaryByParam not working with parameter, only *
I've taken a look at the other VaryByParam questions, but I haven't been able to find the answer to my question. I have an MVC site that has the following action defined:
[OutputCache(Duration = 30, VaryByParam = "TargetID")]
public JsonResult…

zimdanen
- 5,508
- 7
- 44
- 89
0
votes
0 answers
Make a User Control or Page Cache Vary on contents of a cached Dictionary
Yesterday, I spent some time thinking about caching.
Specifically, caching data.
I am using ASP.NET 4.0, coding in VB. I'm using a MySQL database, so cannot use the SQL Server-only sqlDependency.
It is important to me that all data changes are acted…

Jamie Hartnoll
- 7,231
- 13
- 58
- 97