[webkit-dev] WebKit not caching properly?

Darin Adler darin at apple.com
Fri Mar 14 00:26:19 PDT 2008

On Mar 14, 2008, at 12:17 AM, Cameron McCormack wrote:

> I thought I experienced cases where WebKit was re-requesting  
> resources when it should have been caching them, so I made a small  
> test:
>  http://arc.mcc.id.au/temp/2008/cache-test
> It’s a script that outputs a header:
>  Last-Modified: Sat, 1 Jan 2000 00:00:00 GMT
> that also outputs the time at which the script runs.  After loading  
> the page the first time, I would expect that clicking on the link  
> would request the page with an If-Modified-Since header, and for the  
> cached page to be shown.  This doesn’t happen, though; the page is  
> re-requested and the time shown updates.
> Is this a bug?  Or is there a way I can tell WebKit to cache as I  
> expect it?

Caching of web pages loaded from HTTP is not done by WebKit, but  
rather by whatever underlying I/O library each platform's port of  
WebKit calls.

This may well be a bug, but if it is a bug, it's in the HTTP  
implementation on the platform you were testing WebKit on, not in  

If it was on Mac OS X, I'd encourage you to write a bug at <http://bugreport.apple.com 

     -- Darin

More information about the webkit-dev mailing list