HTuncache_current_document();
if (HTMainText && nhist > 0 && !strcmp(HTLoadedDocumentTitle(), HISTORY_PAGE_TITLE) && LYIsUIPage3(HTLoadedDocumentURL(), UIP_HISTORY, 0) && strcmp(HTLoadedDocumentURL(), history[nhist-1].address)) { HTuncache_current_document();   }
PUBLIC BOOLEAN historytarget ARGS1(	document *,	newdoc){    int number;    DocAddress WWWDoc;    HTParentAnchor *tmpanchor;    HText *text;    BOOLEAN treat_as_intern = FALSE;    if ((!newdoc || !newdoc->address) ||	strlen(newdoc->address) < 10 || !isdigit(*(newdoc->address+9)))	return(FALSE);    if ((number = atoi(newdoc->address+9)) > nhist || number < 0)	return(FALSE);    /*     * Optimization: assume we came from the History Page,     * so never return back - always a new version next time.     */    HTuncache_current_document();  /* don't waste the cache */    LYpop_num(number, newdoc);    if (((newdoc->internal_link &&	  history[number].intern_seq_start == history[nhist-1].intern_seq_start) ||	 (number < nhist-1 &&	  history[nhist-1].internal_link &&	  number == history[nhist-1].intern_seq_start))	&& !(LYforce_no_cache == TRUE && LYoverride_no_cache == FALSE)) {#ifndef DONT_TRACK_INTERNAL_LINKS	LYforce_no_cache = FALSE;	LYinternal_flag = TRUE;	newdoc->internal_link = TRUE;	treat_as_intern = TRUE;#endif    } else {	newdoc->internal_link = FALSE;    }    /*     *	If we have POST content, and have LYresubmit_posts set     *	or have no_cache set or do not still have the text cached,     *	ask the user whether to resubmit the form. - FM     */    if (newdoc->post_data != NULL) {	WWWDoc.address = newdoc->address;	WWWDoc.post_data = newdoc->post_data;	WWWDoc.post_content_type = newdoc->post_content_type;	WWWDoc.bookmark = newdoc->bookmark;	WWWDoc.isHEAD = newdoc->isHEAD;	WWWDoc.safe = newdoc->safe;	tmpanchor = HTAnchor_parent(HTAnchor_findAddress(&WWWDoc));	text = (HText *)HTAnchor_document(tmpanchor);	if (((((LYresubmit_posts == TRUE) ||	       (LYforce_no_cache == TRUE &&		LYoverride_no_cache == FALSE)) &&	      !(treat_as_intern && !reloading)) ||	     text == NULL) &&	    (!strncmp(newdoc->address, "LYNXIMGMAP:", 11) ||	     HTConfirm(CONFIRM_POST_RESUBMISSION) == TRUE)) {	    LYforce_no_cache = TRUE;	    LYoverride_no_cache = FALSE;	} else if (text != NULL) {	    LYforce_no_cache = FALSE;	    LYoverride_no_cache = TRUE;	} else {	    HTInfoMsg(CANCELLED);	    return(FALSE);	}    }    if (number != 0)	StrAllocCat(newdoc->title, gettext(" (From History)"));    return(TRUE);}