diff --git a/mdproxy.py b/mdproxy.py
index a347364f1fc879a8fee4b21a22dc4c95a4b4ecc1..93f1f7b11235a35498d1b0430e9b42585d3679b4 100755
--- a/mdproxy.py
+++ b/mdproxy.py
@@ -36,7 +36,7 @@ def serve(domain, eid):
     cached[domain] = cached.get(domain, {})
     if entityID in cached[domain]:
         if cached[domain][entityID].expires > datetime.now(tz.tzutc()):
-            print(f"serve {entityID}")
+            print(f"cache {entityID}")
             return cached[domain][entityID].md
 
     print(f"request {entityID}")
diff --git a/utils.py b/utils.py
index 1e56299a58438526ee903ba6dac5f14321019a48..fab98c00ea596bf2cd09c87b0cf0f2b5a47eae27 100755
--- a/utils.py
+++ b/utils.py
@@ -140,6 +140,7 @@ class Resource:
         if sha1 in self.__dict__:
             signed_entity = self.__dict__[sha1]
             if signed_entity.expires > datetime.now(tz.tzutc()):
+                print(f"cache {sha1}")
                 data = self.__dict__[sha1].md
 
         if data is None and sha1 in self.idps:
@@ -162,5 +163,4 @@ class Resource:
                 print(sha1)
                 print(f"  {e}")
 
-        print(f"serve {sha1}")
         return data