[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