1

I have an ajax endpoint that is cached (devtools > network shows it as (disk cache) - top of the image) Yet, when I try to list all cached endpoints in the browser, I get an empty array (bottom of the image)

caches.keys().then(function(keyList) {console.log(keyList)});

What am I missing here?

I am trying to work an invalidation technique for asp.net core's [ResponseCache]

enter image description here

Cătălin Rădoi
  • 1,804
  • 23
  • 43
  • what cache are you running .open on https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys#examples – amprew May 02 '22 at 12:38
  • uhm... none =) I am simply using the [ResponseCache] attribute from ASP.NET-Core controller. Thought it was the same (browser cache) – Cătălin Rădoi May 02 '22 at 12:55

0 Answers0