title: Adding an API url to cache after button click
body: <p>I have a serviceworker that has been registered. I am using a railway API to fetch some information using getJSON and I am displaying the information using javascript onto the DOM. The API loads and the request is sent only after a button press. The url depends upon input values. I have cached my html,css,js files into cache storage. How do I cache the url for the railways API into cache storage now? </p>