---
title: "Cached Badge"
date: "2021-03-14T01:11:08+00:00"
tags: ["JavaScript","WebComponent"]
project: null
---

# Cached Badge

Source: https://greenzeta.com/update/cached-badge/
Last updated: 2021-03-22T02:02:04+00:00

The media list items were expanded into their own \#WebComponent. When the media list renders, it checks the browser cache for the media url. If found, a "cached" attribute is set on the component which displays an indicator icon.
