about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTAccess.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1997-05-25 00:16:10 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1997-05-25 00:16:10 -0400
commit945e8eb6bb07f64aaca42207af3311220ff2e4ba (patch)
tree6afb50262b844dd069bd4f7234da68008c48677c /WWW/Library/Implementation/HTAccess.c
parente4409c408eedf320b8845cafdd62b664bec1afd8 (diff)
downloadlynx-snapshots-945e8eb6bb07f64aaca42207af3311220ff2e4ba.tar.gz
snapshot of project "lynx", label v2-7-1ac_0-28
Diffstat (limited to 'WWW/Library/Implementation/HTAccess.c')
-rw-r--r--WWW/Library/Implementation/HTAccess.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/WWW/Library/Implementation/HTAccess.c b/WWW/Library/Implementation/HTAccess.c
index 1f00a089..440cb1b1 100644
--- a/WWW/Library/Implementation/HTAccess.c
+++ b/WWW/Library/Implementation/HTAccess.c
@@ -602,6 +602,7 @@ PRIVATE BOOL HTLoadDocument ARGS4(
     char * address_to_load =  (char *)full_address;
     extern char LYforce_no_cache;		       /* from   GridText.c */
     extern char LYoverride_no_cache;		       /* from LYMainLoop.c */
+    extern char * HTLoadedDocumentURL NOPARAMS;		   /* in GridText.c */
     extern BOOL HText_hasNoCacheSet PARAMS((HText *text)); /* in GridText.c */
     extern BOOL reloading;
     extern char *redirecting_url;
@@ -693,6 +694,20 @@ PRIVATE BOOL HTLoadDocument ARGS4(
 	/*
 	**  Already loaded.  Check it it's OK to use it. - FM
 	*/
+#ifdef NOTUSED_FOTEMODS
+	/* not sure whether this is always the right thing to do,
+	 * and anyway, we have a far more complete (and complicated...)
+	 * way to prevent reloading on internal URL references now...
+	 * - kw
+	 */
+	if ((cp = strchr(address_to_load, '#')) != NULL) {
+	    *cp = '\0';
+	    if (!strcmp(address_to_load, HTLoadedDocumentURL()) &&
+	        strncasecomp(address_to_load, "LYNXIMGMAP:", 11))
+	        LYoverride_no_cache = TRUE;
+	    *cp = '#';
+	}
+#endif /* NOTUSED_FOTEMODS */
 	if (LYoverride_no_cache || !HText_hasNoCacheSet(text)) {
             if (TRACE)
 	        fprintf(stderr, "HTAccess: Document already in memory.\n");
<hut@lavabit.com> 2009-11-16 16:41:53 +0100 committer hut <hut@lavabit.com> 2009-11-16 16:41:53 +0100 Initial commit' href='/akspecs/ranger/commit/README?h=v1.9.0b4&id=712aa449042e5f9cc66277eeb68fa18b5a0c7d57'>712aa449
240394a4 ^

240394a4 ^
7dc8fef8 ^
9e89f023 ^
36e4e71e ^
20ab9343 ^

20ab9343 ^





4ea0f69a ^

240394a4 ^
7dc8fef8 ^
36e4e71e ^

4a383291 ^
78a7d762 ^
e952d6cb ^
78a7d762 ^
e952d6cb ^
4ea0f69a ^

7838675f ^

07069888 ^

07069888 ^
7838675f ^

1891697f ^
755e7df1 ^
a3d5f44b ^
66a8d4ff ^
7838675f ^
7dc8fef8 ^
80a93f0b ^
500cf259 ^

7dc8fef8 ^


80a93f0b ^
240394a4 ^



240394a4 ^
7dc8fef8 ^
240394a4 ^




7dc8fef8 ^
240394a4 ^



e5fb3d74 ^
240394a4 ^

240394a4 ^
7dc8fef8 ^



7b33b517 ^

176e8a68 ^
7b33b517 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99