outputcache Questions
9
Solved
For my blog I am wanting to use the Output Cache to save a cached version of a perticular post for around 10 minutes, and thats fine...
<%@OutputCache Duration="600" VaryByParam="*" %>
How...
Parody asked 14/8, 2008 at 19:39
6
Solved
I have an issue with a partial View being cached when it shouldn't be. This partial View is used to display the Logon/Logoff on a page. It uses the simple code below to figure out which link to dis...
Hui asked 9/1, 2012 at 10:24
7
I've been searching for info on how to disable client side caching on project level.
I know I can add the following before an action method:
[System.Web.Mvc.OutputCache(NoStore = true, Duration = ...
Boccioni asked 31/3, 2011 at 7:57
2
Solved
I have an API REST .NET 7 and the attribute [OutputCache] is not caching even in a endpoint without authorization
I added this:
services.AddOutputCache(options =>
{
options.AddBasePolicy(buil...
Minier asked 15/12, 2022 at 0:19
1
I would like to throw a 410 status code for a page that does some database lookups. However it seems that outputcache only caches 200 status code pages. Is there anyway around this? I want to cache...
Hadlee asked 10/8, 2022 at 13:5
2
Solved
In ASP.NET MVC2 I use OutputCache and the VaryByParam attribute. I got it working fine with a single parameter, but what is the correct syntax when I have several parameters on the method?
[Output...
Thruway asked 21/8, 2010 at 15:18
4
Solved
I have added Output Caching to a couple of actions in my app for some easy performance boosts. However, these actions also need to increment a counter after each request (it's a views counter) by h...
Palstave asked 12/6, 2012 at 3:52
3
Solved
I want to use server-side response caching (output cache) with asp.net core 2.0 and found out about Response Caching Middleware and wanted to give it a try with a brand new asp.core mvc project.
...
Doyen asked 12/1, 2018 at 19:31
5
Solved
I'm trying to cache the output of an ApiController method in Web API.
Here's the controller code:
public class TestController : ApiController
{
[OutputCache(Duration = 10, VaryByParam = "none", ...
Engelhart asked 18/7, 2012 at 18:5
1
Solved
I have the code below and want Duration in [OutputCache(Duration = 10)] line to have a variable value so that I can read it from DB or from a List Collection.
And I want be able to reset the serve...
Entitle asked 4/8, 2017 at 2:27
1
Solved
Is there a way to set the value of an OutputCache based on a cookie value?
For simplicities sake, this is my method
[OutputCache(Duration = 600, VaryByParam = "None", VaryByCustom = "ztest")]
pub...
Scott asked 31/8, 2017 at 19:17
1
I have the following code in my MVC controller:
[HttpGet]
[OutputCache(Duration = 3600, VaryByParam = "none", VaryByCustom = "app")]
public async Task<ViewResult> Index(string r)
{
// Stuff...
Impersonate asked 11/7, 2017 at 5:35
2
Solved
We use Windows server 2008 R2 Enterprise And IIS7.5.7600.16385,
and i deployed a simple web (asp.net mvc, c#, .net framework 4.5.1) on the server.
a controller like below, and *.cshtml only output ...
Adultery asked 24/10, 2016 at 12:27
3
Solved
I've been having strange cache issues and put together a very simple .NET page with an output cache directive. However, the page is not caching (the content updates on every refresh).
I have a si...
Overlap asked 20/4, 2015 at 15:5
2
Solved
We are running quite a large site build with ASP.NET MVC 3 and AppFabric as a distributed caching solution. We have implemented a custom OutputCacheAdapter to use our AppFabric cluster.
We are see...
Telluride asked 16/4, 2012 at 12:20
4
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 brows...
Pak asked 29/4, 2010 at 12:48
3
Solved
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 ...
Phobia asked 17/10, 2012 at 9:47
2
Solved
public class ValuesController : ApiController
{
[System.Web.Mvc.OutputCache(Duration = 3600)]
public int Get(int id)
{
return new Random().Next();
}
}
Since caching is set for 1 hour, I woul...
Sparoid asked 5/9, 2016 at 9:8
1
Solved
We are using MVC outputcache attribute, as shown below
[OutputCache(Location = System.Web.UI.OutputCacheLocation.Server, Duration = 60 * 60 * 12, VaryByParam = "staticDataTypes;customerSubscriptio...
Flavor asked 22/4, 2016 at 7:2
6
Does anyone know why if is have cookies on my page, the output cache does not work !
Example page
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ct.aspx.vb" Inherits="ct" %>
<%...
Bacteria asked 23/2, 2012 at 10:28
5
Solved
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 ...
Axiology asked 29/1, 2010 at 14:15
1
I want an easy way to clear cached pages on my asp.net-mvc website.
I have expensive DB operations so i often use outputcaching to make the site run faster. I have code that looks like this:...
Cindacindee asked 27/6, 2011 at 17:37
1
I'm fixing a bug with ASP.NET OutputCache and it's driving me insane.
We want caching on the server, but it does not appear to work (it did a while ago, in an older version of our app, but we disco...
Sateen asked 15/10, 2015 at 10:21
3
Solved
I've set the OutputCache to include 'VaryByContentEncodings="gzip"' in my ASP.net ASPX page. I want the page to serve different css files, a gzipped if the browser support it and the regular non co...
Verlaverlee asked 7/10, 2011 at 17:57
1
I'm using OutputCache in MVC 5 to Cache a view on the server.
I only want to cache a view based on two parameters in the query string.
Action Method
[HttpGet]
[OutputCache(Location = OutputCache...
Councilman asked 12/5, 2015 at 12:39
1 Next >
© 2022 - 2024 — McMap. All rights reserved.