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:
parent
2a2aad15f9
commit
a8f28f21c9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user