From 301b0bae002c5cb828713bf5df6af34d8b925ea6 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 10 Nov 2019 12:44:07 +0000 Subject: llcache: URLs with data scheme are cachable. --- content/llcache.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'content/llcache.c') diff --git a/content/llcache.c b/content/llcache.c index 54848cfaf..e79411279 100644 --- a/content/llcache.c +++ b/content/llcache.c @@ -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) && -- cgit v1.2.3