RE: cached images (gif and jpg)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: cached images (gif and jpg)

Ramon Leon-5
>
> 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.

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: cached images (gif and jpg)

Göran Krampe
Hi!

"Frank Sukhu" <[hidden email]> wrote:

> Greetings,
>
> 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'.

Check class comment of WCachedDocument.

regards, Göran
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside