Re: Enabling Caching in Web-kit based cocoa application
Re: Enabling Caching in Web-kit based cocoa application
- Subject: Re: Enabling Caching in Web-kit based cocoa application
- From: "Ken Ferry" <email@hidden>
- Date: Thu, 6 Dec 2007 02:46:12 -0800
If you're on 10.5, check out -[WebPreferences setCacheModel:] and
maybe -[WebPreferences setUsesPageCache:].
These don't seem to be documented outside of the headers right now,
for which I'm filing a bug. I think the default behavior in Tiger was
that all apps cached like Safari, whereas now a web browser-like app
needs to specifically ask for Safari-like caching. This improves
memory usage for apps that use WebViews for tasks other than web
browsing. For example, Adium uses a WebView to display a
conversation.
-Ken
On Dec 5, 2007 11:09 PM, JanakiRam <email@hidden> wrote:
> Hi All,
>
> I'm new to Webkit-Cocoa world , Pls bear with me if the question
> looks simple enough.
>
> I've a cocoa application which shows my local app server pages. I'm
> loading the pages using following code snippet.
>
> [[webView mainFrame] requestWithURL:[NSURL
> URLWithString:urlString]]];
>
> When ever i try to load a new page , its taking same time(2-3
> sec) to load page every time. But when i try to open my page using Safari,
> its taking time for the first , next subsequent loads take no time ( less
> that 1/2 sec ).
>
> I think the problem could be cache issue. I'm also planning
> to cache images inside a page , which will reduce most of the traffic.
>
> Is there any way to provide caching capability to web-view in a
> cocoa application
>
> Please provide some pointers on resolving this issue . Thanks in
> Advance.
>
> -JanakiRam.
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden