hydrogenjs / hydrogen

🎈 Hydrogen. Voted (by me) the world's lightest static-site generator built with TypeScript ❤ It uses 🔥 lit-html inspired templating for super duper performant template generation.
https://hydrogen-js.netlify.app/
MIT License
167 stars 9 forks source link

Added a cache version variable to the service worker #52

Closed shailen-naidoo closed 4 years ago

shailen-naidoo commented 4 years ago

With this enhancement, you now have access to variable called CACHE_VERSION which you can use to version your cache.

The version is pulled from your package.json

const CACHE_VERSION = "1.1.0";
codecov-io commented 4 years ago

Codecov Report

Merging #52 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #52   +/-   ##
=======================================
  Coverage   91.42%   91.42%           
=======================================
  Files           9        9           
  Lines         105      105           
  Branches       13       13           
=======================================
  Hits           96       96           
  Misses          9        9

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a6186c3...2826af9. Read the comment docs.