RE: [Zope] ZGDChart refresh
You're right, it's the browser cache! There was a gif file named 'mychart?' ('mychart' is my chart's name) in the temporary internet files' folder, so I suppose the browser just shows that file again and again. If I delete this file and ask to show the page again, it generates the chart properly. So now we know what the problem is, but I need a solution! How can I tell my browser not to use this file? Or how can I delete this file from Zope? Thanks in advance, Igor Leturia
-----Jatorrizko mezua----- Nondik: hans [mailto:hans@beehive.de] Bidalia: Ostirala, 2002.eko apirilak 5 14:18 Nora: Igor Leturia Cc: zope@zope.org Gaia: Re: [Zope] ZGDChart refresh
Igor Leturia wrote:
Hi all!
I'm showing a ZGDChart in a page. The chart obtains the data from a DTML Method, but even if the data change the chart doesn't. I mean that even if I show that page with other parameters, the chart is always the same (the first it showed). It seems like there is a problem with the cache and it doesn't refresh the chart. Any ideas?
sounds like browser cache. cheers hans ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
Igor Leturia wrote:
You're right, it's the browser cache! There was a gif file named 'mychart?' ('mychart' is my chart's name) in the temporary internet files' folder, so I suppose the browser just shows that file again and again. If I delete this file and ask to show the page again, it generates the chart properly.
So now we know what the problem is, but I need a solution! How can I tell my browser not to use this file? Or how can I delete this file from Zope?
Control/Shift when reload or something like that
Igor Leturia wrote:
Hi all!
I'm showing a ZGDChart in a page. The chart obtains the data from a DTML Method, but even if the data change the chart doesn't. I mean that even if I show that page with other parameters, the chart is always the same (the first it showed). It seems like there is a problem with the cache and it doesn't refresh the chart. Any ideas?
sounds like browser cache. cheers hans ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
-> Control/Shift when reload or something like that No, no, no... he needs a solution for his *customers*. He's looking for a "pragma: no-cache" header or some such. How does one tell Zope to send no-caching HTTP headers?
At 05.04.2002 16:11 +0200, Igor Leturia wrote:
You're right, it's the browser cache! There was a gif file named 'mychart?' ('mychart' is my chart's name) in the temporary internet files' folder, so I suppose the browser just shows that file again and again. If I delete this file and ask to show the page again, it generates the chart properly.
So now we know what the problem is, but I need a solution! How can I tell my browser not to use this file? Or how can I delete this file from Zope?
Thanks in advance,
Igor Leturia
I tend to tackle these things by renaming the chart/image/movie/whatever everytime its content changes (i.e. it is reuploaded or something). Requires some logic in the display code but makes sure nothing is cached because the URL is different. Usually I create a kind of wrapper object that contains the actual resource and acts as a proxy to the outside world. HTH, Stefan -- BLOWFISH n. - Preference for beef
participants (4)
-
Derek Simkowiak -
hans -
Igor Leturia -
Stefan H. Holek