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:
parent
0137eb6638
commit
fe8f24b877
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user