diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1999-05-13 02:10:32 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1999-05-13 02:10:32 -0400 |
commit | 0bafa3a38906a8ffc183d758baa774d8b23a9fa4 (patch) | |
tree | ae40c4a9fa3a9dc049538d288ca3a2bc2fcf14da /src/HTML.c | |
parent | 169e8098be76947e6e1aa002052d9536dc9aa273 (diff) | |
download | lynx-snapshots-0bafa3a38906a8ffc183d758baa774d8b23a9fa4.tar.gz |
snapshot of project "lynx", label v2-8-2pre_3
Diffstat (limited to 'src/HTML.c')
-rw-r--r-- | src/HTML.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/HTML.c b/src/HTML.c index b78d5ac0..13e572e9 100644 --- a/src/HTML.c +++ b/src/HTML.c @@ -7734,19 +7734,25 @@ PRIVATE HTStream* CacheThru_new ARGS2( { char filename[LY_MAXPATH]; HTStream *stream = NULL; -/* HTProtocol *p = (HTProtocol *)anchor->protocol; */ + HTProtocol *p = (HTProtocol *)anchor->protocol; /* * Neatly and transparently vanish if source caching is disabled. */ if (LYCacheSource == SOURCE_CACHE_NONE) return target; -/* + +#ifndef DEBUG_SOURCE_CACHE + /* Only remote HTML documents may benefits from HTreparse_document(), */ + /* oh, assume http protocol: */ if (strcmp(p->name, "http") != 0) { CTRACE(tfp, "Protocol is \"%s\"; not caching\n", p->name); return target; } -*/ +#else + /* all HTStreams will be cached */ +#endif + stream = (HTStream *) malloc(sizeof(*stream)); if (!stream) outofmem(__FILE__, "CacheThru_new"); |