Bypassing KDE's http cache
Thomas Baumgart
ipwizard at users.sourceforge.net
Wed Dec 14 19:01:05 GMT 2005
Hi all,
on Wednesday 14 December 2005 18:56, Thiago Macieira wrote:
> Thomas Baumgart wrote:
> >Hi,
> >
> >we - the KMyMoney development team - received a bug report, that online
> >price updates via web-pages don't work properly. According to
> >http://bugs.kde.org/show_bug.cgi?id=118285 this is related to the KDE's
> >http cache setting.
> >
> >Question: Is there an easy way to force the loading of a web-page from
> >within the application while ignoring any cached version of the URL? We
> >currently use KIO::NetAccess::download to fetch price updates and it
> > seems that some sources don't transmit the correct cache update
> > information.
>
> Yes.
>
> Set the "cache" metadata to one of the values listed in
> KIO::parseCacheControl (kio/kio/global.cpp):
>
> if (tmp == "cacheonly")
> return KIO::CC_CacheOnly;
> if (tmp == "cache")
> return KIO::CC_Cache;
> if (tmp == "verify")
> return KIO::CC_Verify;
> if (tmp == "refresh")
> return KIO::CC_Refresh;
> if (tmp == "reload")
> return KIO::CC_Reload;
I must be missing something: How would we do that? I imagine some call
infront of the call to KIO::NetAccess::download() and another one to set
it back when download() returned.
Somehow, I don't feel very comfortable with that approach. The goal is to
stick with download() (synchronous call).
p.s. Please CC me on mails to kfm-devel since I don't have subscribed to
it. TIA.
--
Regards
Thomas Baumgart
thb at net-bembel.de Check the KMyMoney open source
http://www.net-bembel.de/ project at http://kmymoney2.sf.net/
public key available under thb at net-bembel.de at http://www.keyserver.net
GPG-FP: E55E D592 F45F 116B 8429 4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
Life would be so much easier if we could just
look at the source code. -- Dave Olson
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 224 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20051214/c26e7c9e/attachment.sig>
-------------- next part --------------
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
More information about the kfm-devel
mailing list