On Sun, Jul 02, 2000 at 03:56:39PM +1000, Marc Boschma wrote:

> Sounds like you need to manipulate the expiry time for the objects. I'd
> suggest that that can either be done in the RESPONSE or via meta tags in the
> standard_html_header to mark the page and the image as non-cacheable.
> I'm actually interested in a Guru's response on this as I will need to set
> the expiry explicitly to save load on the server for content that is
> dynamically generated but doesn't change often.

It would work, but I'd have to set up meta tags for LocalFS objects..

I've found a better kludge: when I call the index page, I pass a "refresh" variable 
the URL which contains the number of the modified image.

Within the index method, I then call:

       <dtml-call "REQUEST.set('id2',id+'_0.jpg')">
       <dtml-let img="store[id][id2]">

       <A HREF="imageForm?fnum=&dtml.url_quote-id;"><IMG
           WIDTH="<dtml-var "img.width">"
           HEIGHT="<dtml-var "img.height">"


This way, the refreshed image is called with a trailing "?0.283759872" that tricks 
to think it's a new object, and reloads.

This could work for you too, maybe.

"This company has performed an illegal operation and will be shut down.
 If the problem persists, contact your vendor or appeal to a higher court."
 - Signal11 on slashdot

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to