mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Factor check_head_for_cache_control out of process_head
This commit is contained in:
parent
4b297a5b03
commit
deb74bd1bd
@ -442,12 +442,11 @@ check_head_for_refresh(struct html_context *html_context, unsigned char *head)
|
|||||||
mem_free(refresh);
|
mem_free(refresh);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
process_head(struct html_context *html_context, unsigned char *head)
|
check_head_for_cache_control(struct html_context *html_context,
|
||||||
|
unsigned char *head)
|
||||||
{
|
{
|
||||||
check_head_for_refresh(html_context, head);
|
if (!get_opt_bool("document.cache.ignore_cache_control", NULL)) {
|
||||||
|
|
||||||
if (!get_opt_bool("document.cache.ignore_cache_control")) {
|
|
||||||
unsigned char *d;
|
unsigned char *d;
|
||||||
int no_cache = 0;
|
int no_cache = 0;
|
||||||
time_t expires = 0;
|
time_t expires = 0;
|
||||||
@ -510,6 +509,14 @@ process_head(struct html_context *html_context, unsigned char *head)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
process_head(struct html_context *html_context, unsigned char *head)
|
||||||
|
{
|
||||||
|
check_head_for_refresh(html_context, head);
|
||||||
|
|
||||||
|
check_head_for_cache_control(html_context, head);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user