summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibWeb/Loader/ResourceLoader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Loader/ResourceLoader.cpp b/Libraries/LibWeb/Loader/ResourceLoader.cpp
index 4121480274..f8c4d5a3ee 100644
--- a/Libraries/LibWeb/Loader/ResourceLoader.cpp
+++ b/Libraries/LibWeb/Loader/ResourceLoader.cpp
@@ -35,6 +35,8 @@
#include <LibWeb/Loader/Resource.h>
#include <LibWeb/Loader/ResourceLoader.h>
+//#define CACHE_DEBUG
+
namespace Web {
ResourceLoader& ResourceLoader::the()
@@ -82,7 +84,9 @@ RefPtr<Resource> ResourceLoader::load_resource(Resource::Type type, const LoadRe
if (it->value->type() != type) {
dbg() << "FIXME: Not using cached resource for " << request.url() << " since there's a type mismatch.";
} else {
+#ifdef CACHE_DEBUG
dbg() << "Reusing cached resource for: " << request.url();
+#endif
return it->value;
}
}