lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev Status of lynx?


From: Mark Sutton
Subject: Re: lynx-dev Status of lynx?
Date: Sat, 19 May 2001 09:00:16 -0700 (PDT)

Thomas Dickey <address@hidden> wrote:
> On Fri, May 18, 2001 at 09:23:02AM -0700, Mark Sutton wrote:
>> ftp://lynx.isc.org/current/ works.
>>
>> Vlad's "source cache does not expire" still applies, not that anyone
>> would consider doing anything so devious as that. :)
>
> I don't understand the comment...

Sorry,  should have been:

Vlad's "source cache does not expire" patch still applies and works
                                      ^^^^^               ^^^ ^^^^^
My flip way of saying while I agree it has no place it any standards
compliant browser, I like the patch. When I saw it I thought "That'll
never make it in, better save it now and make some copies."
It is Evil, I realize, but who knows there might be others who use "\"
to look at the source and don't want to reload from the net just to get
a different link to an add they don't download anyway. It might wreck
the banner add industry.  Hmmm, hasn't that happened already.
It looked like this for those new to the list, or didn't make a copy:
against dev.20

diff -rc old/lynx.cfg fixed/lynx.cfg
*** old/lynx.cfg        Sun Apr  1 17:51:46 2001
--- fixed/lynx.cfg      Fri May 18 08:47:03 2001
***************
*** 2757,2762 ****
--- 2757,2770 ----
  #NO_FORCED_CORE_DUMP:FALSE


+ .h2 DOCUMENTS_DO_NOT_EXPIRE
+ # If set to TRUE, this setting tells lynx to ignore Cache-Control pragma, and
+ # to avoid reloading the document even if it's expired accoriding to
+ # "Expires" http header set for it. Of course, Ctrl-R will reload the 
document.
+ # This could be helpful if pages you are browsing are rather "static", but
+ # pretend that they are expired only in order to show you another ad.
+ DOCUMENTS_DO_NOT_EXPIRE:TRUE
+
  .h1 Appearance

  .h2 COLOR
*** old/WWW/Library/Implementation/HTAccess.c   Sun Apr  1 17:51:46 2001
--- fixed/WWW/Library/Implementation/HTAccess.c Fri May 18 08:47:02 2001
***************
*** 892,900 ****
        */
  #ifdef DONT_TRACK_INTERNAL_LINKS
        if (LYoverride_no_cache || !HText_hasNoCacheSet(text) ||
!           !HText_AreDifferent(anchor, full_address))
  #else
!       if (LYoverride_no_cache ||
            ((LYinternal_flag || !HText_hasNoCacheSet(text)) &&
             strncmp(full_address, "LYNXIMGMAP:", 11)))
  #endif /* TRACK_INTERNAL_LINKS */
--- 892,901 ----
        */
  #ifdef DONT_TRACK_INTERNAL_LINKS
        if (LYoverride_no_cache || !HText_hasNoCacheSet(text) ||
!       !HText_AreDifferent(anchor, full_address) ||
!       documents_do_not_expire )
  #else
!       if (LYoverride_no_cache || documents_do_not_expire ||
            ((LYinternal_flag || !HText_hasNoCacheSet(text)) &&
             strncmp(full_address, "LYNXIMGMAP:", 11)))
  #endif /* TRACK_INTERNAL_LINKS */
diff -rc old/src/LYGlobalDefs.h fixed/src/LYGlobalDefs.h
*** old/src/LYGlobalDefs.h      Sun Apr  1 17:51:46 2001
--- fixed/src/LYGlobalDefs.h    Fri May 18 08:47:03 2001
***************
*** 452,457 ****
--- 452,458 ----
  extern BOOLEAN LYUseTraceLog;         /* Use a TRACE log?              */

  extern BOOL force_empty_hrefless_a;
+ extern BOOL documents_do_not_expire;
  extern int connect_timeout;

  #ifdef TEXTFIELDS_MAY_NEED_ACTIVATION
diff -rc old/src/LYMain.c fixed/src/LYMain.c
*** old/src/LYMain.c    Sun Apr  1 17:51:46 2001
--- fixed/src/LYMain.c  Fri May 18 08:47:03 2001
***************
*** 460,465 ****
--- 460,466 ----
  PUBLIC BOOLEAN LYPrependCharsetToSource = TRUE;
  PUBLIC BOOLEAN LYQuitDefaultYes = QUIT_DEFAULT_YES;
  PUBLIC BOOLEAN dont_wrap_pre = FALSE;
+ PUBLIC BOOLEAN documents_do_not_expire = FALSE;/*ignore cache control?*/

  PUBLIC int connect_timeout = 18000;/*=180000*0.1 - used in HTDoConnect.*/

diff -rc old/src/LYReadCFG.c fixed/src/LYReadCFG.c
*** old/src/LYReadCFG.c Sun Apr  1 17:51:46 2001
--- fixed/src/LYReadCFG.c       Fri May 18 08:47:04 2001
***************
*** 1388,1393 ****
--- 1388,1394 ----
  #ifdef EXP_CHARSET_CHOICE
       
PARSE_FUN("display_charset_choice",CONF_FUN,parse_display_charset_choice),
  #endif
+      PARSE_SET("documents_do_not_expire", CONF_BOOL, 
&documents_do_not_expire),
       PARSE_ADD("downloader", CONF_ADD_ITEM, downloaders),
       PARSE_SET("emacs_keys_always_on", CONF_BOOL, &emacs_keys),
       PARSE_SET("enable_scrollback", CONF_BOOL, &enable_scrollback),


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]