Re: WebKit Caching

2009-04-11 Thread Adam Thorsen
Hi Greg, I mistakenly posted to this list first, when I should have posted to the sdk list. The client is not performing a conditional GET request based on examinations of the outgoing requests (from within the client). The server is detecting date changes and sending the correct date (ba

Re: WebKit Caching

2009-04-10 Thread Greg Guerin
Adam Thorsen wrote: Load a page that includes a javascript file into a webview. Now change the javascript file and reload the contents of the webview. Any changes made to the javascript file will not be evident. Basic questions: Is the client performing a conditional GET request? Is the se

Re: WebKit Caching

2009-04-10 Thread Adam Thorsen
Jeff, The test case is this: Create an html page that requires a javascript file. Ensure that the javascript file has not been modified for at least an hour. Load a page that includes a javascript file into a webview. Now change the javascript file and reload the contents of the webview. Any

Re: WebKit Caching

2009-04-10 Thread Jeff Johnson
If that's true, it sounds like a WebKit bug. Do you have a test case? Also, just noticing the mailing list we're on. WebKit developers and others familiar with WebKit development tend to hang out on the webkitsdk-dev list, so you might have better luck with your question there. -Jeff On

Re: WebKit Caching

2009-04-10 Thread Adam Thorsen
Jeff, Thanks for the response. These techniques do not appear to affect how WebKit caches javascript resources. This is what I tried: WebPreferences *prefs = [webView preferences]; [prefs setUsesPageCache:NO]; and WebPreferences *prefs = [webView preferences]; [prefs setPr

Re: WebKit Caching

2009-04-10 Thread Jeff Johnson
Adam, I think that -[WebPreferences setUsesPageCache:] should work. - [WebPreferences setPrivateBrowsingEnabled:] will also have this effect, though it may be more than you want. -Jeff On Apr 10, 2009, at 11:27 AM, Adam Thorsen wrote: I would like to prevent a WebKit WebView from caching

WebKit Caching

2009-04-10 Thread Adam Thorsen
I would like to prevent a WebKit WebView from caching certain content. I've attempted to prevent this using several approaches, including: 1. Overriding the NSURLCache cachedResponseForRequest and cachedResponse forRequest methods 2. Handling -(NSURLRequest *)webView:(WebView *)sender r