Explores using the Cache API's put method to store generated HTML
Generates a random card each time the Next Name button is clicked. Stores the card's HTML in the browser's cache.
When the browser's previous/next button is clicked, it retrieves the HTML from cache that the corresponds to the query parameters in the URL
- MDN Cache API
- Web.dev The Cache API: A quick guide
- Web.dev Storage for the web
- LogRocket Working with the JavaScript Cache API