1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -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 Miciah Dashiel Butler Masters
parent 2a2aad15f9
commit a8f28f21c9

View File

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