File: 07_617713_cache_control.diff

package info (click to toggle)
elinks 0.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,352 kB
  • sloc: ansic: 156,569; cpp: 30,139; sh: 7,719; python: 4,031; perl: 2,183; pascal: 1,670; makefile: 995; javascript: 904; yacc: 295; lisp: 125; awk: 79; ruby: 70
file content (16 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Patch by Ben Hutchings to fix document caching in violation
of HTTP (see http://bugs.debian.org/617713).

Index: elinks/src/config/options.inc
===================================================================
--- elinks.orig/src/config/options.inc	2024-07-10 06:43:36.091518540 +0200
+++ elinks/src/config/options.inc	2024-07-10 06:43:36.091518540 +0200
@@ -570,7 +570,7 @@
 		"cache instead of asking the server.")),
 
 	INIT_OPT_BOOL("document.cache", N_("Ignore cache-control info from server"),
-		"ignore_cache_control", OPT_ZERO, 1,
+		"ignore_cache_control", OPT_ZERO, 0,
 		N_("Ignore Cache-Control and Pragma server headers. "
 		"When set, the document is cached even with 'Cache-Control: "
 		"no-cache'.")),