kiramclean / morphy

A simple static site generator
2 stars 1 forks source link

Fingerprint assets #32

Open kiramclean opened 3 years ago

kiramclean commented 3 years ago

Think about fingerprinting assets or some other way to bust browser caches when they change

kiramclean commented 3 years ago

idea for how to do this: hash contents of each asset file and expose this in site model so users can add e.g. styles.css?v={{ page/hash }} or something to head to fingerprint. Temp workaround can just use the timestamp, or manual increment.