fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kio / kio / http_slave_defaults.h
blobaf97cfa734935f2195c6f24694881d73c9f67edc
1 /* This file is part of the KDE libraries
2 Copyright (C) 2001 Waldo Bastian <bastian@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
19 #ifndef _KIO_HTTP_SLAVE_DEFAULTS_H
20 #define _KIO_HTTP_SLAVE_DEFAULTS_H
22 // CONNECTION
23 #define DEFAULT_KEEP_ALIVE_TIMEOUT 60 // 60 seconds
25 // CACHE SETTINGS
26 #define DEFAULT_MAX_CACHE_SIZE 50*1024 // 50 MB
27 #define DEFAULT_MAX_CACHE_AGE 60*60*24*14 // 14 DAYS
28 #define DEFAULT_CACHE_EXPIRE 3*60 // 3 MINS
29 #define DEFAULT_CLEAN_CACHE_INTERVAL 30*60 // 30 MINS
30 #define DEFAULT_CACHE_CONTROL KIO::CC_Refresh // Verify with remote
31 #define CACHE_REVISION "9\n" // Cache version
33 // DEFAULT USER AGENT KEY - ENABLES OS NAME
34 #define DEFAULT_USER_AGENT_KEYS "o" // Show OS
36 // MAXIMUM AMOUNT OF DATA THAT CAN BE SAFELY SENT OVER IPC
37 #define MAX_IPC_SIZE 1024*8
39 // AMOUNT OF DATA TO OBTAIN FROM THE SERVER BY DEFAULT
40 #define DEFAULT_BUF_SIZE 1024*4
42 // SOME DEFAULT HEADER VALUES
43 #define DEFAULT_LANGUAGE_HEADER "en"
44 #define DEFAULT_MIME_TYPE "text/html"
45 #define DEFAULT_PARTIAL_CHARSET_HEADER ", utf-8;q=0.5, *;q=0.5"
47 #define DEFAULT_ACCEPT_HEADER "text/html, image/jpeg;q=0.9, image/png;q=0.9, text/*;q=0.9, image/*;q=0.9, */*;q=0.8"
49 #endif