OutPut Cache is the caching technique to cache the static pages in ASP.NET.
Questions tagged [outputcache]
680 questions
0
votes
1 answer
Which is better - Output Caching 6 Child Actions or 6 DB queries using RenderPartial?
I am attempting to develop a cms system that will use tags to display similar content. For example, underneath the news section there will be articles, blogs, news and forum questions that share the same tags. There will be no more than 5 items in…

Martin Hansen Lennox
- 2,837
- 2
- 23
- 64
0
votes
0 answers
IIS responding with 304 HTTP status to non-conditional requests
Sometimes my IIS server starts responding with 304 HTTP status to non-conditional requests. I have yet to determine exactly when this happens, but when it starts all browsers keep getting 304.
This is the request (debugged using fiddler):
GET…

hectorct
- 3,335
- 1
- 22
- 40
0
votes
1 answer
Output Cache not caching all pages
I have a cache rule in a directory by file extension and there are 2 dynamic pages in that directory.

Control Freak
- 12,965
- 30
- 94
- 145
0
votes
1 answer
Can I force caching on a 302 temporary redirect in ASP.NET?
I have an ASPX page that issues a Response.Redirect that points to an image file.
The redirect response headers look like this:
HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location:…

Rebecca
- 13,914
- 10
- 95
- 136
0
votes
1 answer
ASP.Net / IIS 7.5 not recognising jMeter for OutputCache
I have set up an extremely basic Web Forms site locally to find out why when I do a load test through jMeter to a .Net website that the OutputCache directive on the page is ignored.
I'm using this directive at the top of the page:
<%@ OutputCache…

Ryan Durkin
- 813
- 6
- 17
0
votes
1 answer
Output Cache problem on ViewEngine that use 2 separate view for 1 controller
http://www.hanselman.com/blog/MixMobileWebSitesWithASPNETMVCAndTheMobileBrowserDefinitionFile.aspx
To the sake of simplicity, please try out this. Basically, I am trying to do the mobile view engine, but then i found out that I have outputcache,…

DucDigital
- 4,580
- 9
- 49
- 97
0
votes
1 answer
CORS headers not being refreshed due to OutputCache in MVC 4 using the Thinktecture IdentityModel package
Presently I am using Thinktecture package for CORS support with my MVC 4 application. on adding the output cache attribute for a method, the CORS support is lost because the HTTP headers are probably cached and the ORIGIN is not modified w.r.t. the…

Rohit Tidke
- 150
- 1
- 10
0
votes
1 answer
How to set ASP.NET outputcache attribute in order to produce private and public caching?
I have a MVC application which is running seamlessly. Now I want to improve the caching a little bit. I was trying to use the OutputCache attribute from the System.Web.Mvc namespace, but no metter which value I chose, the header was always either…

Tomas Walek
- 2,516
- 2
- 23
- 37
0
votes
0 answers
Cached data on the client, can still be accessible after logout
I have the following action method, which cache the data on the client for around 300 seconds:
[CheckUserPermissions(Model = "Admin")]
[OutputCache(CacheProfile = "short", Location = OutputCacheLocation.Client, VaryByHeader =…

John John
- 1
- 72
- 238
- 501
0
votes
0 answers
Web Application caching Integrated mode aspx pages
We have an asp.net web application running on ASP.NET 4.0 Integrated mode.
Sometimes ASPX pages are getting cached on client machines, before moving to integrated mode we were using classic mode and things were working fine. Suddenly aspx pages are…

AshokD
- 442
- 4
- 14
0
votes
1 answer
Donutcache Mvc3 and areas
Im having a problem getting donutcaching to work on an area i MVC3.
It seems that the "area"-attribute doesnt get passed along in the routeValueDictionary to the HtmlHelper Action-method in MvcDonutCaching.
I have a childaction that gets called like…

Dannie Walden
- 29
- 7
0
votes
1 answer
Query related to [OutputCache] attribute
In order to disable browser cache, to reliably instructing the browser not to cache, I found the best solution was to create your own [NoCache] attribute class
public class NoCacheSettingsAttribute : ActionFilterAttribute
{
public override void…

Shubhajyoti Ghosh
- 1,292
- 5
- 27
- 45
0
votes
1 answer
Output cache does not work with postback on usercontrol
I have a page in which i have 4 user control. 1 of them is used to filter out the the contents of the other control. I have checkboxes in that control like filter by gender, filter by size and color etc....
I have added the following code on my page…

patel.milanb
- 5,822
- 15
- 56
- 92
0
votes
1 answer
How to use OutputCache for a specific argument only?
I have this example of OutputCache.
My problem is that I want the page to be cached only if the [id] equals to NULL. In all other cases I don't want to have cache at all.
MyController:
[OutputCache(Duration = int.MaxValue, VaryByParam =…

user1615362
- 3,657
- 9
- 29
- 46
0
votes
1 answer
When I refresh the Web Page, it doesn't load the content from cache . The content is actually available in the cache and expires every 4 hrs
I have these cache headers set
Context.Response.Cache.SetExpires(DateTime.Now.Add(refresh));
Context.Response.Cache.SetMaxAge(refresh);
Context.Response.Cache.SetCacheability(HttpCacheability.Private);
…
user2822367