473,322 Members | 1,781 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,322 software developers and data experts.

Stopping caching of aspx files on server (not page that gets sent to client)

2
[This involves asp.net 2.0]

Hello,

I am having a problem with caching, or at least I think it is with caching.

I have a simple <%= "text " + DateTime.Now.ToString() %> in one of my aspx files (that is included thru the <!-- #include file="..." --> tags ). So when I change "text" into something else and hit refresh, it still shows the word "text". The time actually changes with every hit of refresh.

I have caching (on client computer) turned of through the following method:

in my web.config:

<configuration>
<system.web>
<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="NoCache"
duration="0"
location="ServerAndClient"
enabled="true" />
</outputCacheProfiles>
</outputCacheSettings>
</caching>
</system.web>
</configuration>

... and at top of my aspx files, at the top:

<%@ OutputCache CacheProfile="NoCache" VaryByParam="none" %>

It seems as if the aspx file is cached in my server (localhost), but not the page that is sent to the client machine. How can I make it so that aspx file is not cached, or somehow tell .NET (or IIS) that the aspx file has been changed and needs to be reprocessed? (can "polltime" and "notification" be used in anyway? what about the whole thing with "cache dependency"?)

Thanks,
Joe
Apr 23 '06 #1
0 2302

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dave Griffiths | last post by:
Hi all Very new to JavaScript, I am trying to cache a number of images as the page loads, is there a max number of images or memory usage before the browser stops caching. My PC has 1G ram so...
6
by: Hypo | last post by:
Im relatilvly new to a web programming in general, and here's the situation i have: I have a default page with dynamic content, and one button with onclick code something like this: { // do...
0
by: Martin | last post by:
Hi. I had a very frustrating afternoon and evening but I have got it all under control now so all of a sudden I am in a good mood. I want to share some insights on output caching with you lot. ...
4
by: Captain Chaos | last post by:
Is it Possible to Cache Pictures JPG/BMP on the Client Browser ? The other Elements of the Page should not being cached because they change. Is it possible to cache parts of a page on the...
8
by: Nick Gilbert | last post by:
Hi, Our development web server (Win 2003 Server) seems to be caching the output of various files (CSS and .aspx files) if they have no query string. The moment you put a question mark in the...
4
by: Smithers | last post by:
My ASP.NET app enables users to upload photos - after which they can optionally rotate the photo (90 degrees to the left or right). They just click a link that causes a postback, and server-side...
3
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains...
1
by: =?Utf-8?B?RnJpdHo=?= | last post by:
hi, i am currently investigating a bug in a complex code project. unfortunately i cannot ask the developer having written it as he has left the company. the thing is: a .cs-code-behind-file of...
0
docdiesel
by: docdiesel | last post by:
The fastest (and cheapest) transfer of data is that which doesn't have to be done - because the data is already there. Or still there - the caching of files is widely known and practised. Each web...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.