Questions tagged [outputcache]

OutPut Cache is the caching technique to cache the static pages in ASP.NET.

680 questions
9
votes
4 answers

Chrome Back button page refresh - ASP.net

I have an ASP.net application (c#). When a user is on a specific page, they click a link on this page that takes them to a child page, displaying the product details. If the user clicks the browser back button, I need the parent page to be refreshed…
SetiSeeker
  • 6,482
  • 9
  • 42
  • 64
9
votes
5 answers

ASP.NET (MVC) Outputcache and concurrent requests

Let's say that, theoratically, I have a page / controller action in my website that does some very heavy stuff. It takes about 10 seconds to complete it's operation. Now, I use .NET's outputcache mechanism to cache it for 15 minutes (for examle, I…
Razzie
  • 30,834
  • 11
  • 63
  • 78
9
votes
3 answers

Why GetVaryByCustomString is not called

output cache is implemented in ASP.NET MVC2 using code below. GetVaryByCustomString method is not called: placing breakpoint to its first line and running application shows that breakpoint is not reached. Breakpoint in controller Index() is…
Andrus
  • 26,339
  • 60
  • 204
  • 378
9
votes
4 answers

php apc_fetch all ids

Is there a way to fetch and print, all the data stored in apc's storage? I need to do so for testing and debugging purposes. I know I can retrieve a specific data by doing apc_fetch(id), but I don't know any way to retrieve all the data by passing…
Alex
  • 7,538
  • 23
  • 84
  • 152
8
votes
1 answer

What are difference between IIS (Dynamic and Static) cache,OutPutCache and browser cache

What are difference between IIS (Dynamic and Static) cache, OutPutCache and browser cache? I think I'm confuse about them. Does browser cache all js or css files? What happend if I use IIS caching and don't use OutputCache? What happend if I use…
Arian
  • 12,793
  • 66
  • 176
  • 300
8
votes
2 answers

Caching strategy, Output Cache vs Data Cache or both?

I'm working on an ASP.NET MVC project and I've come to the point where I want to start considering my caching strategy. I've tried to leave my framework as open as possible for the use in caching. From what I heard during Scott Hanselman's podcast…
Chad Moran
  • 12,834
  • 2
  • 50
  • 72
8
votes
1 answer

OutputCache dilemma with authentication in ASP.NET MVC

I'm writing an ASP.NET MVC site that includes the possibility for users to create accounts and log in. As I also want to cache the site aggressively, I'm running into some trouble mixing caching with authentication. On every page, at the top, if the…
Maxim Zaslavsky
  • 17,787
  • 30
  • 107
  • 173
8
votes
1 answer

VaryByCustom not working for session variable

I'm using output cache for a web site with login system. I have global pages which can be accessed by every user. These pages are cached and also use a master page. <%@ OutputCache Duration="3600" VaryByParam="none" VaryByCustom="userid" %> I'm…
HasanG
  • 12,734
  • 29
  • 100
  • 154
8
votes
2 answers

Does MVC OutputCaching take preference over setting cache response headers?

This question is related to my other question. I have an MVC application with caching disabled for all controller actions. I do this by setting cache response headers in Application_BeginRequest: protected void Application_BeginRequest() { …
Carvellis
  • 3,992
  • 2
  • 34
  • 66
8
votes
1 answer

What's the current practice for partial caching in ASP MVC2?

My website pages are composed of two kinds of content. The first is variable between users but constant for all pages. The second is constant across users, but variable between pages. This is a common layout. What is the best way to apply output…
8
votes
1 answer

Configure the MVC.NET OutputCache to return 304 Not Modified if an ActionResult hasn't changed

Introduce the Problem We have successfully configured the browser cache to return a saved response if the server indicates 304 Not Modified. Here is the config:
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
8
votes
2 answers

"CacheProfile" in MVC 5

I am beginner in MVC and I have a project to transform from MVC2 to the latest version of MVC. I read read some books on MVC 4, so I started to understand the main mechanisms. However, when transforming my MVC 2 solution, I have a problem with an…
serge
  • 13,940
  • 35
  • 121
  • 205
8
votes
2 answers

Vary: * incorrectly added to http header response (asp.net mvc3)

I am using the following output cache profile: In dev, I have a response header with one Vary entry: HTTP/1.1 200 OK Server: Microsoft-IIS/7.5 ... Vary:…
nakhli
  • 4,009
  • 5
  • 38
  • 61
7
votes
2 answers

Caching until data changes in ASP.NET MVC & Entity Framework 4.1

I currently use the repository pattern in my ASP.NET MVC 3 app. I use OutputCache to lessen the load on my database by decorating my controller methods with a data annotation similar to this: [OutputCache(Duration = 3600, VaryByParam =…
Nick
  • 5,844
  • 11
  • 52
  • 98
7
votes
2 answers

Priming the asp.net output cache

Is there a way to programmatically prime the asp.net output cache? I've investigated the caching API and can't seem to find an obvious way to do this. Has anyone tried something like this? If so, what method did you use?
DanP
  • 6,310
  • 4
  • 40
  • 68