| | 1 | Konqueror |
| | 2 | |
| | 3 | Cache is stored in "~/.kde/cache-katherline/http/[0-9a-z]/" |
| | 4 | |
| | 5 | The top level directories are the first letter in the host and is historical when processing a lot of files in one dir was harder. |
| | 6 | |
| | 7 | Each file is stored by itself. So the file http://www.reddit.com/static/aupmod.png goes in: r/www.reddit.com_static_aupmod.png_2cd5ba49 |
| | 8 | Each file: "host"_"file"_"fullUrlHash" |
| | 9 | |
| | 10 | Each file contains the following (minus the text before each : so the first line is just '7') |
| | 11 | {{{ |
| | 12 | Version: 7 |
| | 13 | url: http://www.reddit.com/static/aupmod.png |
| | 14 | Creation date: 1213180806 |
| | 15 | Expire date: 1213765446 |
| | 16 | ETag: 1207334405.0-334 |
| | 17 | Last Modified: Fri, 04 Apr 2008 18:40:05 GMT |
| | 18 | File: <all contents> |
| | 19 | }}} |
| | 20 | |
| | 21 | In KDE 4 the file is gzip'd for 90% savings |
| | 22 | Also r/www.reddit.com_static_aupmod.png_2cd5ba49_freq contains the number of times the url has been requested in a fashion that is not lock safe a has a bunch of problems. Not something I would recomend copying |
| | 23 | |
| | 24 | A seperate application goes through cleaning the cache. |
| | 25 | |
| | 26 | A very simple system. |