Questions tagged [outputcache]

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

680 questions
0
votes
1 answer

Custom cache not caching querystring

I'm using custom cache on a page, leaving a timestamp to follow cached versions. I have <%@ OutputCache Duration="1200" VaryByParam="None" VaryByCustom="myCache" Location="ServerAndClient" %> on the page, and the code-behind of Global.asax has…
JNF
  • 3,696
  • 3
  • 31
  • 64
0
votes
1 answer

with OutputCache random user have to pay cost

I'm using OutputCache to avoid execute same code everytime, but I have the following problem: when it expires, a random user have to pay the cost to execute this code. Can avoid it?? I'm using asp.net MVC 4.0. thanks!
Martin
  • 745
  • 2
  • 7
  • 23
0
votes
1 answer

How to get fresh copy if OutputCache(Location = OutputCacheLocation.Downstream is used

Mono MVC2 application uses controller below to cache order page in browser. If F5 is pressed in browser, old page is still returned to browser. How to return fresh page if F5 is pressed ? It looks like page is cached in server but…
Andrus
  • 26,339
  • 60
  • 204
  • 378
0
votes
1 answer

use same page from browser cache if query string is different

ASP.NET MVC2 page is used to show order in browser as described in How to fill document header from jqgrid data at page load javascript retrieves correct document from browser and bind it to page elements. document id is specifiied in query string…
Andrus
  • 26,339
  • 60
  • 204
  • 378
0
votes
1 answer

MVC 4 OutputCache cause error when to use with WebSecurity.IsAuthenticated

I have a Controller/Action called "List". This method has built-in with attribute [OutputCache(Duration = 3600, VaryByParam = "*")] This action have cache of 3600 seconds, because load data from database and it are changed a each 1 hour…
0
votes
2 answers

Asp.net output cache substitution with postback in user control

We have a site where all pages are output cached, i.e. the caching is on aspx-level with VaryByParam="*". Now there is a requirement to make a gallup control, i.e. a small "How is this site working for you?" and then when the user clicks an answer…
Mathias Rönnlund
  • 4,078
  • 7
  • 43
  • 96
0
votes
1 answer

Find when an item was added to a cache

So, I'm learning about caching... I'm building a function to compress and cache JS files. I'm trying to make it update any time I change a file though, to do this, I am trying to compare the lastWrite time of the JS files on my server and the time…
Jamie Hartnoll
  • 7,231
  • 13
  • 58
  • 97
0
votes
1 answer

Prevent browser caching with an ASP.NET OutputCacheProvider

I'm using a System.Web.Caching.OutputCacheProvider. I do not want browsers to cache, I only want to do server caching. I see that when something comes out of my server cache, they get an Expires header of 24 hours in the future. How do I modify…
mhenry1384
  • 7,538
  • 5
  • 55
  • 74
0
votes
1 answer

Outputcache and HttpModule

I have an HTTP module that replaces relative URLs with the URL of our CDN for static content. However, when this module is added to the web.config, it causes our Outputcache to no longer work. I've tried messing with the order of httpModules in…
ChickenMilkBomb
  • 939
  • 6
  • 18
0
votes
1 answer

Is there a way to list output cache entries in IIS?

Is there a way to list all the entries in IIS 7/7.5 output cache? I know that we have the Output Cache # Entries in PerfMon but I would like to see at least the keys that are there. Is is possible? Thanks!
tucaz
  • 6,524
  • 6
  • 37
  • 60
0
votes
2 answers

ASP.Net OutputCacheProvider strange behavior

I have implement a simple file-based custom OutputCacheProvider based on samples i found on the Internet. The code follows: using System; using System.Configuration; using System.IO; using System.Web; using System.Web.Caching; using…
zissop
  • 31
  • 2
0
votes
1 answer

Cache problem with DropDownList and VaryByControl

I have a page with a single dropdown. Depending on what the user chooses in this dropdown, a pretty huge report is generated. The cache directive for the page reads: <%@ OutputCache Duration="14400" VaryByParam="none" VaryByControl="lstUsers"…
Jim
  • 505
  • 3
  • 13
0
votes
2 answers

Web application does not update when refreshed

I have an ASP .NET Web Application that queries and shows data from a database using ListView Control. When I run the Web App on the browser it works fine, but when I delete or add something in the database, then refresh the browser where the web…
user919789
  • 171
  • 4
  • 7
  • 19
0
votes
1 answer

Why usercontrol outputcache has no Location property?

I have some questions about OutPutCache to UserControl. I'm a fresher on OutPutCache. 1、I found that I can't set the location property. Where does the UserControl existed? 2、It seems that the UserControl would inherit outputcache features from the…
DavidPeng
  • 53
  • 7
0
votes
1 answer

HttpCachePolicy SetETag

http://msdn.microsoft.com/en-us/library/system.web.httpcachepolicy.setetag.aspx Is there a way to check for is the ETag is already set? I Keep getting the exception The ETag header has already been set But i can figure out how to check for it
mimo
  • 937
  • 12
  • 19
1 2 3
45
46