1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

Reflow check_head_for_cache_control

This commit is contained in:
Miciah Dashiel Butler Masters 2007-09-04 12:13:20 +00:00 committed by Witold Filipczyk
parent 0137eb6638
commit fe8f24b877

View File

@ -446,11 +446,13 @@ static void
check_head_for_cache_control(struct html_context *html_context,
unsigned char *head)
{
if (!get_opt_bool("document.cache.ignore_cache_control", NULL)) {
unsigned char *d;
int no_cache = 0;
time_t expires = 0;
if (get_opt_bool("document.cache.ignore_cache_control", NULL))
return;
/* XXX: Code duplication with HTTP protocol backend. */
/* I am not entirely sure in what order we should process these
* headers and if we should still process Cache-Control max-age
@ -507,7 +509,6 @@ check_head_for_cache_control(struct html_context *html_context,
html_context->special_f(html_context,
SP_CACHE_EXPIRES, expires);
}
}
void
process_head(struct html_context *html_context, unsigned char *head)