473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Confused with Output cache set programmatically

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

Nov 10 '06 #1
0 1702

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: ree32 | last post by:
I am a bit confused with capabilities of XML. I have an XML document with information on images(photos). Is there way to use XSL/XSLT to create a page that will display the images as gallery. ...
0
by: RMD | last post by:
Is there a way to programmatically clear the output cache of a usercontrol from the containing page (or anywhere else for that matter)? I basically want a button that, when clicked, will force...
2
by: Welman Jordan | last post by:
Hello, I met with a tough problem when making my pages. Please help. To make the problem short, i write down what i want here first, and then explain my situation in details. How can I...
2
by: Tim Mavers | last post by:
Is there a setting in the web.config that will enable page-output caching for an entire site? All the documentation I find on output caching deals at the page or sub-page level. I saw a couple...
11
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta...
3
by: Smithers | last post by:
Just wondering what it would take to cache a copy of the output HTML from a dynamically constructed aspx page before it is sent to the browser. Reason being: the page is constructed of a few user...
0
by: Jordan S. | last post by:
Using .NET 3.5... in a "plain old" .aspx page I have the following code in the Init event: this.Context.Response.Cache.SetExpires(DateTime.Now.AddSeconds(60));...
1
by: WT | last post by:
Hello, I have a dictionary made with objects which contain a control element, the control element is added to a Page when I want to edit the dictionary content. I put this dictionary in cache...
2
by: Ken Fine | last post by:
I have a question about ASP.NET output caching. I want to use screen scraping as a temporary hack to pull in some complex Classic ASP-rendered content into some ASP.NET pages: protected String...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.