Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Confused with Output cache set programmatically

Reply
Thread Tools

Confused with Output cache set programmatically

 
 
SharpSmith@gmail.com
Guest
Posts: n/a
 
      11-10-2006
hi
i have a strange problem with OutPut cache working fine on development
box and not working on production server
background : @outputCahce directive is fine, but wanted to make
centralized output cache , so i have some setting section in web config
defining what page and how to cache
and in my Base Page i having following :
<code>
Response.Cache.VaryByParams["*"] = true; //will vary by all params
DateTime expires = DateTime.Now.AddSeconds(duration );
Response.Cache.SetExpires(expires ); // will valid for duration in
seconds from now
Response.Cache.SetValidUntilExpires(true); // will not update cache by
client header ( ignore Ctrl+f5)
Response.Cache.SetCacheability(HttpCacheability.Se rverAndPrivate ); //
whould be cached both by browser and at server
</code>

The problem is that on local machine it works fine: you load page, hit
f5 or Ctrl+F5, and you see the server-cached version
on server it other : you see that browser do caching , but F5 will
bring you fresh, not-cached by server page

used time-span printed with response.write on test pages
and i sure that caching block is working, i write to log to ensure that
some page added to cache

done with ASP.Net 1.1 running IIS5 on dev and IIS6 on production
Web has many resources on output caching but i not found any solution
for this

Any ideas guys ?

Thanks Much
EV

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
client-side cache vs server-side cache vs ajax vs asp.net callback =?Utf-8?B?b25l?= ASP .Net 1 03-08-2006 12:25 PM
How to set output cache to never expire? Frank Rizzo ASP .Net 1 02-20-2006 07:49 PM
Programmatically flush iis cache Kyle Brandon ASP .Net 3 09-11-2004 07:31 PM
Page.Cache vs HttpContext.Current.Cache DesignerX ASP .Net 5 01-20-2004 10:55 PM
Cache::Cache Stale Segments Jeff Nokes Perl 0 09-30-2003 04:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57