At 03:17 PM 7/5/00 +0200, Edward C. Zimmermann wrote:
> > I've discovered a "problem" with serving images through WebKit. I guess
> > because there is a CGI script involved in the URL (for the adapter):
> > http://localhost/WebKit.cgi/MyProject/MyPage
> > ...my browser will not cache the images (whose SRCs are relative URLs to
> > the page). That means they have to get loaded fresh every time.
> > This makes for fairly slow web pages once you start throwing in some
> > graphical icons and tabs.
> > Does anyone know if there is a header that can be set to force this?
> > Something like "Cache: Yes" or perhaps I need to send a time stamp with
> > response when files are served?
> > -Chuck
>Send a "Last-Modified:" with the date of the image.. Then one can support a
>HTTP_IF_MODIFIED_SINCE check.... The rest is really a browser/proxy/cache
Sounds good. I CCed the lists so people know I've got this solution. I'll
modify the WebKit servlet that dishes out generic files to do this.
>I also like to add an "ETag:" with a resource key but its really another
>set of goals...
I've seen ETags before, but can't say that I'm familiar with them or your
set of goals. Care to expand?