Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the old cache deletion example. #37588

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

StanleyMasinde
Copy link

Description

caches.forEach is not a valid method. You first need to use cache.keys to get a list of all caches. The loop through them and delete what is not in the allow list.

Motivation

MDN is a GOTO place for Docs and this may cause a lot if frustration to those new to JavaScript.

Related issues and pull requests

N/A

caches.forEach is not a valid method. You first need to use cache.keys to get a list of all caches.
@StanleyMasinde StanleyMasinde requested a review from a team as a code owner January 10, 2025 11:19
@StanleyMasinde StanleyMasinde requested review from sideshowbarker and removed request for a team January 10, 2025 11:19
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Jan 10, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant