Bypassing KDE's http cache
Thiago Macieira
thiago at kde.org
Wed Dec 14 17:56:25 GMT 2005
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;
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
4. And æfter se scieppend ingelogode, he wrát "cenn", ac eala! se
rihtendgesamnung andswarode "cenn: ne wát hú cennan 'eall'. Ástynt."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20051214/281edc63/attachment.sig>
-------------- next part --------------
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
More information about the kfm-devel
mailing list