[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: http cache files: appended hash?
From:       Waldo Bastian <bastian () kde ! org>
Date:       2003-09-11 14:01:58
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 11 September 2003 15:40, Bettler, Thomas wrote:
> How are the appended hashs (to encode the url) calculated?
>
> eg. the file ~/.kde/share/cache/http/k/www_kde_org__0d73b38a
>
> - how do i calculate this hash?

See the http.cc source, there are no guarantees that they will remain like
that in future versions though.

> - is there a way to implement an app to prefetch many pages to cache to
> continue browsing offline. (similar to wget, but directly into the http
> cache of konqueror)?

Easiest would be to add a metadata flag to kio_http that says "fetch this page 
and store it in the cache even if the remote server says that we shouldn't 
cache it". cache="preload" maybe?

Cheers,
Waldo
- -- 
bastian@kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian@suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/YIBWN4pvrENfboIRAqfXAJ93XLN7JBlK58E/Hgp5FvRa9sfA3QCfXgXv
DKLJH+ZmpWFJ9XZ2xixxrkk=
=3Ltb
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic