diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2019-11-10 12:44:07 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2019-11-10 14:36:40 +0000 |
commit | 301b0bae002c5cb828713bf5df6af34d8b925ea6 (patch) | |
tree | 4fe1e3473a7f2ad5d94d31c76477c52a4b0f78c2 | |
parent | 66401b7fa6e9ad5b2b3230e6483787c95e727624 (diff) | |
download | netsurf-301b0bae002c5cb828713bf5df6af34d8b925ea6.tar.gz netsurf-301b0bae002c5cb828713bf5df6af34d8b925ea6.tar.bz2 |
llcache: URLs with data scheme are cachable.
-rw-r--r-- | content/llcache.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) && |