[Seaside] cached images (gif and jpg)

Ramon Leon ramon.leon at allresnet.com
Tue Aug 29 15:23:51 UTC 2006


> 
> I have some code like this:
> 
>    html anchor callback: [self nextImage];
>           with: [html image fileName:  '/resources/next.jpg';
>                              mimeType: 'image/jpg' ].
> 
> 
> When I modify the jpg file (next.jpg), the updated image is 
> not displayed.
> It seems as if someone is caching the original image of 'next.jpg'.
> 
> I have flushed the brower cache, restarted the WAKom server 
> but no luck. How do I get the modified jpg file to be displayed?
> 
> Thanks,
> Frank
> 

Why not just do...

html anchor callback: [self nextImage];
    with: [html image url:  '/resources/next.jpg'].

Otherwise it'll get stored in a WACachedDocument

WACachedDocument clearCache, seems to be the appropriate place to flush that
cache, should you stick with this method.



More information about the Seaside mailing list