mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
LLCache: validate max-age before use
This commit is contained in:
parent
23698aecf8
commit
c1dc4e61bd
@ -602,7 +602,9 @@ llcache_fetch_parse_cache_control(llcache_object *object, char *value)
|
||||
object->cache.no_cache = LLCACHE_VALIDATE_ALWAYS;
|
||||
}
|
||||
|
||||
object->cache.max_age = http_cache_control_max_age(cc);
|
||||
if (http_cache_control_has_max_age(cc)) {
|
||||
object->cache.max_age = http_cache_control_max_age(cc);
|
||||
}
|
||||
|
||||
http_cache_control_destroy(cc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user