diff --git a/static/js/now.js b/static/js/now.js new file mode 100644 index 0000000..4c372cf --- /dev/null +++ b/static/js/now.js @@ -0,0 +1,75 @@ +/* now.js — Keep the Current page's "Last updated" relative phrase + honest. + + build/Now.hs renders `.now-stamp-relative` ("3 days ago") at build + time, relative to the build machine's clock. A page served days + later from cache/CDN would then lie. We recompute the phrase in the + browser from the `