Published_at Timeago with CDN Cache

Hello,

You use the timeago function in the Handlebars to show how many time ago your post has been published, however your CDN / Cache freeze the information for all your visitors.

I share here a simple script to update the Published_at information with dynamic data :

Compatible with Cloudflare integration :

If it can help !

Ludovic