Firebase Serve and Cache

--

One of the biggest problems with Progressive Web Apps and $firebase serve command is the caching.

It is painful to clear the browser caching. Here are the 2 options that can help

  1. Comment out the functions exports line and restart the $firebase serve command

This removes unnecessary routing cached in the firebase rewrite rules. Once the cached rewriting rules are cleared, uncomment those lines.

2. Clear storage

3. Update service workers on reload

--

--