Current location: Hot Scripts Forums » General Web Coding » JavaScript » Caching Problem w/ Dynamic Pages


Caching Problem w/ Dynamic Pages

Reply
  #1 (permalink)  
Old 08-09-05, 08:32 AM
Monarch Monarch is offline
New Member
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Caching Problem w/ Dynamic Pages

I have a user interface that consists of a frameset with 4 frames. One frame is not displayed, and refreshes itself periodically with setTimeout() and reload() to retrieve some updated values from the server. It contains javascript that updates values on all of the other frames with the new information from the server.

On Firefox 1.xx and Netscape 7 & 8 (so, Gecko-based browsers), it appears that a blank or incomplete version of this hidden frame is getting cached, because the other frames are not updated. This problem only occurs after the first time the page is loaded. In other words, it doesn't occur when the page refreshes itself with setTimeout(), only when the whole frameset is refreshed or otherwise loaded. The problem seems to be fixed when I clear the cache on the browser, or disable it altogether. This problem does not seem to manifest itself in IE6. I have not tested it in Opera, Safari, or Konqueror.

I'm sending the following HTTP headers from the server-side:
cache-control: no-cache, max-age=0, must-revalidate
pragma: no-cache
expires: 0

(I can't use Last-Modified because the system may not always have the current time (it is an embedded application on a unit with no battery to preserve the time through reboots))

And the following meta-tags in the hidden frame:
<META HTTP-EQUIV="cache-control" CONTENT="no-cache">
<META HTTP-EQUIV="cache-control" CONTENT="max-age=0">
<META HTTP-EQUIV="expires" CONTENT="0">
<META HTTP-EQUIV="pragma" CONTENT="no-cache">


Does anyone know of any caching issues with gecko-based browsers? Hopefully this is the right forum for this question.

Thanks a lot,
Mike

Last edited by Monarch; 08-09-05 at 08:57 AM. Reason: typos
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i make it dynamic I dont want 20 000 pages of data? dodgyknacker PHP 2 03-18-05 07:59 AM
Dynamic ListBox Problem ... Plz Help me... jaishalg PHP 1 09-14-04 05:23 AM
problem with dynamic table noviceforever HTML/XHTML/XML 1 07-31-04 09:09 PM
problem with dynamic table noviceforever JavaScript 3 07-10-04 10:16 AM
dynamic url's in xhtml pages? tom HTML/XHTML/XML 4 09-26-03 05:11 PM


All times are GMT -5. The time now is 10:53 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.