File: 07_617713_cache_control.diff

package info (click to toggle)
elinks 0.19.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,312 kB
  • sloc: ansic: 174,714; cpp: 31,967; sh: 7,841; python: 4,039; perl: 2,183; javascript: 1,794; pascal: 1,720; makefile: 1,006; yacc: 295; lisp: 125; awk: 79; ruby: 70
file content (16 lines) | stat: -rw-r--r-- 722 bytes parent folder | download
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	2025-12-12 18:22:21.734325837 +0100
+++ elinks/src/config/options.inc	2025-12-12 18:22:21.731325867 +0100
@@ -584,7 +584,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'.")),