llcache: URLs with data scheme are cachable.

This commit is contained in:
Michael Drake 2019-11-10 12:44:07 +00:00
parent 66401b7fa6
commit 301b0bae00

View File

@ -1792,7 +1792,7 @@ llcache_object_retrieve(nsurl *url,
/* POST requests are never cached */
uncachable = true;
} else {
/* only http(s), resource, and file schemes are cached */
/* only http(s), data, resource, and file schemes are cached */
lwc_string *scheme;
bool match;
@ -1806,6 +1806,9 @@ llcache_object_retrieve(nsurl *url,
lwc_string_isequal(scheme, corestring_lwc_https,
&match) == lwc_error_ok &&
(match == false) &&
lwc_string_isequal(scheme, corestring_lwc_data,
&match) == lwc_error_ok &&
(match == false) &&
lwc_string_isequal(scheme, corestring_lwc_resource,
&match) == lwc_error_ok &&
(match == false) &&