Alaska Software Inc. - cache problem?
Username: Password:
AuthorTopic: cache problem?
Jeremy Suitercache problem?
on Tue, 10 May 2005 11:26:37 +0100
I'm probably missing something silly here, but I have a screen that lists a 
database table.  If I add/amend a record and then look at the list screen 
again via a menu link the new information isn't shown until I refresh the 
screen or close the browser and open it again.

It seems to cache the page and just show what it already has.

Any way to stop this?

TIA

Jeremy
Phil Ide
Re: cache problem?
on Tue, 10 May 2005 11:52:45 +0100
Jeremy,

> I'm probably missing something silly here, but I have a screen that lists a 
> database table.  If I add/amend a record and then look at the list screen 
> again via a menu link the new information isn't shown until I refresh the 
> screen or close the browser and open it again.
> 
> It seems to cache the page and just show what it already has.

How are you viewing the data?  XbpBrowse, XbpQuickBrowse or what?

Regards,

Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

Put two pennies in pocket...they'll breed.
Jeremy SuiterRe: cache problem?
on Tue, 10 May 2005 12:27:10 +0100
I should have made the question a bit more clear.  It's a simple table 
displayed using IE6 as a browser.

I'm sure it's something to do with the browser caching the page.

Jeremy



"Phil Ide" <phil@idep.org.uk> wrote in message 
news:1j2ydvjdhz3tv.dlg@idep.org.uk...
> Jeremy,
>
>> I'm probably missing something silly here, but I have a screen that lists 
>> a
>> database table.  If I add/amend a record and then look at the list screen
>> again via a menu link the new information isn't shown until I refresh the
>> screen or close the browser and open it again.
>>
>> It seems to cache the page and just show what it already has.
>
> How are you viewing the data?  XbpBrowse, XbpQuickBrowse or what?
>
> Regards,
> -- 
> Phil Ide
>
> ***************************************
> * Xbase++ FAQ, Libraries and Sources: *
> * goto: http://www.idep.org.uk/xbase  *
> ***************************************
>
> Put two pennies in pocket...they'll breed.
Phil Ide
Re: cache problem?
on Tue, 10 May 2005 13:08:12 +0100
Jeremy,

> I should have made the question a bit more clear.  It's a simple table 
> displayed using IE6 as a browser.
> 
> I'm sure it's something to do with the browser caching the page.

Aah.  In that case, in IE go to Tools/Internet Options then select General
tab.

The middle box is 'Temporary Internet Files', click on 'Settings'.

Ensure 'Check for newer versions of stored pages' is set to 'Every visit to
the page'.

After setting this,  click Ok and on the General tab click 'Delete Files'
to erase your cache (don't erase cookies if it asks!).

Regards,

Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

Bacteria: The rear portion of the cafeteria
Jeremy SuiterRe: cache problem?
on Tue, 10 May 2005 13:47:42 +0100
Spot on, it did the trick nicely.

Do you know if this setting can be set from the server side so I don't have 
to alter all my users PC's?

Thanks

Jeremy


"Phil Ide" <phil@idep.org.uk> wrote in message 
news:107l5jxzyn0fd.dlg@idep.org.uk...
> Jeremy,
>
>> I should have made the question a bit more clear.  It's a simple table
>> displayed using IE6 as a browser.
>>
>> I'm sure it's something to do with the browser caching the page.
>
> Aah.  In that case, in IE go to Tools/Internet Options then select General
> tab.
>
> The middle box is 'Temporary Internet Files', click on 'Settings'.
>
> Ensure 'Check for newer versions of stored pages' is set to 'Every visit 
> to
> the page'.
>
> After setting this,  click Ok and on the General tab click 'Delete Files'
> to erase your cache (don't erase cookies if it asks!).
>
> Regards,
> -- 
> Phil Ide
>
> ***************************************
> * Xbase++ FAQ, Libraries and Sources: *
> * goto: http://www.idep.org.uk/xbase  *
> ***************************************
>
> Bacteria: The rear portion of the cafeteria
Jeremy SuiterRe: cache problem?
on Tue, 10 May 2005 14:10:38 +0100
Ignore my request, I've figured out how to do it.

Jeremy

"Jeremy Suiter" <jeremys@rendallandrittner.co.uk> wrote in message 
news:81gb75VVFHA.6152@S15147418...
> Spot on, it did the trick nicely.
>
> Do you know if this setting can be set from the server side so I don't 
> have to alter all my users PC's?
>
> Thanks
>
> Jeremy
>
>
> "Phil Ide" <phil@idep.org.uk> wrote in message 
> news:107l5jxzyn0fd.dlg@idep.org.uk...
>> Jeremy,
>>
>>> I should have made the question a bit more clear.  It's a simple table
>>> displayed using IE6 as a browser.
>>>
>>> I'm sure it's something to do with the browser caching the page.
>>
>> Aah.  In that case, in IE go to Tools/Internet Options then select 
>> General
>> tab.
>>
>> The middle box is 'Temporary Internet Files', click on 'Settings'.
>>
>> Ensure 'Check for newer versions of stored pages' is set to 'Every visit 
>> to
>> the page'.
>>
>> After setting this,  click Ok and on the General tab click 'Delete Files'
>> to erase your cache (don't erase cookies if it asks!).
>>
>> Regards,
>> -- 
>> Phil Ide
>>
>> ***************************************
>> * Xbase++ FAQ, Libraries and Sources: *
>> * goto: http://www.idep.org.uk/xbase  *
>> ***************************************
>>
>> Bacteria: The rear portion of the cafeteria
>
>
Phil Ide
Re: cache problem?
on Tue, 10 May 2005 15:00:22 +0100
Jeremy,

>> Do you know if this setting can be set from the server side so I don't 
>> have to alter all my users PC's?
>>
> Ignore my request, I've figured out how to do it.

Really?  How?

Regards,

Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

Consistency: The last refuge of the unimaginative
Jeremy SuiterRe: cache problem?
on Tue, 10 May 2005 16:10:42 +0100
I couldn't find out how to set something on the server, but as I'm only 
running an Intranet I change the registry setting via the login script.

I created a reg file called ie-no-cache.reg with the content

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet 
Settings]
"SyncMode5"=dword:00000003

(for I.E version 4 use the DWORD SyncMode not SyncMode5)

and call it via the login script using regedit

regedit.exe /s ie-no-cache.reg

It would be nice to change a setting at the webserver to tell the client not 
to cache it.  I'll keep looking to see if it's possible.

Jeremy

"Phil Ide" <phil@idep.org.uk> wrote in message 
news:1xwg320ea8p6u.dlg@idep.org.uk...
> Jeremy,
>
>>> Do you know if this setting can be set from the server side so I don't
>>> have to alter all my users PC's?
>>>
>> Ignore my request, I've figured out how to do it.
>
> Really?  How?
>
> Regards,
> -- 
> Phil Ide
>
> ***************************************
> * Xbase++ FAQ, Libraries and Sources: *
> * goto: http://www.idep.org.uk/xbase  *
> ***************************************
>
> Consistency: The last refuge of the unimaginative
Jeremy SuiterRe: cache problem?
on Tue, 10 May 2005 16:16:50 +0100
I did an Internet search and here's another way I've found of doing it via 
HTML commands

<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">     I.E 4 and below
<META HTTP-EQUIV="Expires" CONTENT="-1">     IE 5 and above
</HEAD>

<BODY onLoad="if ('Navigator' == navigator.appName) 
document.forms[0].reset();" >     Netscape

I'm checking it out now.

Jeremy

"Phil Ide" <phil@idep.org.uk> wrote in message 
news:1xwg320ea8p6u.dlg@idep.org.uk...
> Jeremy,
>
>>> Do you know if this setting can be set from the server side so I don't
>>> have to alter all my users PC's?
>>>
>> Ignore my request, I've figured out how to do it.
>
> Really?  How?
>
> Regards,
> -- 
> Phil Ide
>
> ***************************************
> * Xbase++ FAQ, Libraries and Sources: *
> * goto: http://www.idep.org.uk/xbase  *
> ***************************************
>
> Consistency: The last refuge of the unimaginative
Jeremy SuiterRe: cache problem?
on Tue, 10 May 2005 16:20:33 +0100
Finished testing and it works fine.

"Jeremy Suiter" <jeremys@rendallandrittner.co.uk> wrote in message 
news:gE28bNXVFHA.400@S15147418...
>I did an Internet search and here's another way I've found of doing it via 
>HTML commands
>
> <HEAD>
> <META HTTP-EQUIV="Pragma" CONTENT="no-cache">     I.E 4 and below
> <META HTTP-EQUIV="Expires" CONTENT="-1">     IE 5 and above
> </HEAD>
>
> <BODY onLoad="if ('Navigator' == navigator.appName) 
> document.forms[0].reset();" >     Netscape
>
> I'm checking it out now.
>
> Jeremy
>
> "Phil Ide" <phil@idep.org.uk> wrote in message 
> news:1xwg320ea8p6u.dlg@idep.org.uk...
>> Jeremy,
>>
>>>> Do you know if this setting can be set from the server side so I don't
>>>> have to alter all my users PC's?
>>>>
>>> Ignore my request, I've figured out how to do it.
>>
>> Really?  How?
>>
>> Regards,
>> -- 
>> Phil Ide
>>
>> ***************************************
>> * Xbase++ FAQ, Libraries and Sources: *
>> * goto: http://www.idep.org.uk/xbase  *
>> ***************************************
>>
>> Consistency: The last refuge of the unimaginative
>
>
Phil Ide
Re: cache problem?
on Tue, 10 May 2005 16:51:11 +0100
Jeremy,

> I did an Internet search and here's another way I've found of doing it via 
> HTML commands
> 
> <HEAD>
> <META HTTP-EQUIV="Pragma" CONTENT="no-cache">     I.E 4 and below
> <META HTTP-EQUIV="Expires" CONTENT="-1">     IE 5 and above
> </HEAD>

Yes, and if you can control such things on your web-server, you can set the
HTTP headers to tell both the browser and any intervening proxies not to
cache as well:

 http/1.1
Cache-Control: no-cache

 http/1.0 catch for Cache-Control empathy
Pragma: no-cache


Note that the pragma (including the one in your <meta> tag) is an HTTP/1.0
directive, so you should also add this tag to your pages because not all
browsers support all pragma's (but most are http/1.1 compliant)

 IE5, NS6 etc.
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">


Regards,

Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

I forgot all about the Amnesia conference.
Thomas Braun Re: cache problem?
on Fri, 13 May 2005 11:23:11 +0200
Phil Ide wrote:

> Yes, and if you can control such things on your web-server, you can set the
> HTTP headers to tell both the browser and any intervening proxies not to
> cache as well:

I have found this document to be very helpful when I had caching issues:

http://www.mnot.net/cache_docs/

HTH
Thomas Braun