HighTechTalks DotNet Forums  

Caching problem...

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Caching problem... in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Martin Russ
 
Posts: n/a

Default Caching problem... - 06-09-2005 , 12:05 PM






I have an asp.net application. On one of the pages is a Flash object that
polls a .xml file for data every 2 seconds or so.

The .xml file is being updated, but the contents are never updated on the
page through the flash object. I know the flash object is correctly polling.

If I stop and start the web application, the updated data is immediately
displayed.

I cannot find anywhere where this caching is taking place or can be turned
off. I've tried adding custom headers 'cache-control: no-cache' to both the
directory AND the entire website without success.

Any help would be greatly appreciated.

Thanks in advance,

Martin Russ

Reply With Quote
  #2  
Old   
CodeMeister
 
Posts: n/a

Default Re: Caching problem... - 06-12-2005 , 08:48 PM






Have you tried Enabling the content expiration in IIS? This can be done on
the document level under the HTTP Headers tab. You can set it to expire
immediately. This has worked for me in the past.

You can also poll an .aspx page and dynamically create the xml data. This
would also solve the caching issue.

Hope this helps.

Jon


"Martin Russ" <Martin Russ (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have an asp.net application. On one of the pages is a Flash object that
polls a .xml file for data every 2 seconds or so.

The .xml file is being updated, but the contents are never updated on the
page through the flash object. I know the flash object is correctly
polling.

If I stop and start the web application, the updated data is immediately
displayed.

I cannot find anywhere where this caching is taking place or can be turned
off. I've tried adding custom headers 'cache-control: no-cache' to both
the
directory AND the entire website without success.

Any help would be greatly appreciated.

Thanks in advance,

Martin Russ



Reply With Quote
  #3  
Old   
Martin Russ
 
Posts: n/a

Default Re: Caching problem... - 06-13-2005 , 07:31 AM



Thanks Jon - yes, content expiration is already set to expire immediately.

Can you explain the 'poll an aspx page and create the .xml file dymanically'
please?

Thanks,

Martin

"CodeMeister" wrote:

Quote:
Have you tried Enabling the content expiration in IIS? This can be done on
the document level under the HTTP Headers tab. You can set it to expire
immediately. This has worked for me in the past.

You can also poll an .aspx page and dynamically create the xml data. This
would also solve the caching issue.

Hope this helps.

Jon


"Martin Russ" <Martin Russ (AT) discussions (DOT) microsoft.com> wrote in message
news:AD6E60C1-ED96-4A36-AADA-4A48EF52C47C (AT) microsoft (DOT) com...
I have an asp.net application. On one of the pages is a Flash object that
polls a .xml file for data every 2 seconds or so.

The .xml file is being updated, but the contents are never updated on the
page through the flash object. I know the flash object is correctly
polling.

If I stop and start the web application, the updated data is immediately
displayed.

I cannot find anywhere where this caching is taking place or can be turned
off. I've tried adding custom headers 'cache-control: no-cache' to both
the
directory AND the entire website without success.

Any help would be greatly appreciated.

Thanks in advance,

Martin Russ




Reply With Quote
  #4  
Old   
CodeMeister
 
Posts: n/a

Default Re: Caching problem... - 06-13-2005 , 08:43 PM



Create an empty aspx page, override the Render method and output the XML to
the writer based on your data. Since the page would be dynamically recreated
on every request you would always have the most current data. You would need
to validate the performance for your request load.

You can load the data from the XML file and cache it with a file dependency.
This would allow you to reload it every time the file changes. Here's a link
on using the cache:
http://samples.gotdotnet.com/quickst...tacaching.aspx

You may also want to look at creating a web service if Flash can parse the
SOAP message.

IHTH

Jon

"Martin Russ" <MartinRuss (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks Jon - yes, content expiration is already set to expire immediately.

Can you explain the 'poll an aspx page and create the .xml file
dymanically'
please?

Thanks,

Martin

"CodeMeister" wrote:

Have you tried Enabling the content expiration in IIS? This can be done
on
the document level under the HTTP Headers tab. You can set it to expire
immediately. This has worked for me in the past.

You can also poll an .aspx page and dynamically create the xml data. This
would also solve the caching issue.

Hope this helps.

Jon


"Martin Russ" <Martin Russ (AT) discussions (DOT) microsoft.com> wrote in message
news:AD6E60C1-ED96-4A36-AADA-4A48EF52C47C (AT) microsoft (DOT) com...
I have an asp.net application. On one of the pages is a Flash object
that
polls a .xml file for data every 2 seconds or so.

The .xml file is being updated, but the contents are never updated on
the
page through the flash object. I know the flash object is correctly
polling.

If I stop and start the web application, the updated data is
immediately
displayed.

I cannot find anywhere where this caching is taking place or can be
turned
off. I've tried adding custom headers 'cache-control: no-cache' to
both
the
directory AND the entire website without success.

Any help would be greatly appreciated.

Thanks in advance,

Martin Russ






Reply With Quote
  #5  
Old   
Martin Russ
 
Posts: n/a

Default Re: Caching problem... - 06-20-2005 , 04:39 PM



Thanks for your help...I eventually found a hotfix for this issue, applied it
and hey presto, it works!

"CodeMeister" wrote:

Quote:
Create an empty aspx page, override the Render method and output the XML to
the writer based on your data. Since the page would be dynamically recreated
on every request you would always have the most current data. You would need
to validate the performance for your request load.

You can load the data from the XML file and cache it with a file dependency.
This would allow you to reload it every time the file changes. Here's a link
on using the cache:
http://samples.gotdotnet.com/quickst...tacaching.aspx

You may also want to look at creating a web service if Flash can parse the
SOAP message.

IHTH

Jon

"Martin Russ" <MartinRuss (AT) discussions (DOT) microsoft.com> wrote in message
news:29C44E76-E9B9-4B28-9DD1-D9BA45C80244 (AT) microsoft (DOT) com...
Thanks Jon - yes, content expiration is already set to expire immediately.

Can you explain the 'poll an aspx page and create the .xml file
dymanically'
please?

Thanks,

Martin

"CodeMeister" wrote:

Have you tried Enabling the content expiration in IIS? This can be done
on
the document level under the HTTP Headers tab. You can set it to expire
immediately. This has worked for me in the past.

You can also poll an .aspx page and dynamically create the xml data. This
would also solve the caching issue.

Hope this helps.

Jon


"Martin Russ" <Martin Russ (AT) discussions (DOT) microsoft.com> wrote in message
news:AD6E60C1-ED96-4A36-AADA-4A48EF52C47C (AT) microsoft (DOT) com...
I have an asp.net application. On one of the pages is a Flash object
that
polls a .xml file for data every 2 seconds or so.

The .xml file is being updated, but the contents are never updated on
the
page through the flash object. I know the flash object is correctly
polling.

If I stop and start the web application, the updated data is
immediately
displayed.

I cannot find anywhere where this caching is taking place or can be
turned
off. I've tried adding custom headers 'cache-control: no-cache' to
both
the
directory AND the entire website without success.

Any help would be greatly appreciated.

Thanks in advance,

Martin Russ







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.