1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-28 01:35:32 +00: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,
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
@ -425,7 +427,6 @@ check_head_for_cache_control(struct html_context *html_context,
else if (expires)
html_context->special_f(html_context,
SP_CACHE_EXPIRES, expires);
}
}
void