sc0ttj / mdsh

A simple static site generator, using Markdown and Bash
https://sc0ttj.github.io/mdsh/
10 stars 0 forks source link

Better Cache busting #17

Closed sc0ttj closed 5 years ago

sc0ttj commented 5 years ago

Cache bust all assets by appending timestamp ($(date +%s)) at build-time to various URLs:

Linked to in <head>:

Elsewhere:

???

... This is required cos we want to auto-publish new posts (and updated index files) from inside update_pages, and then run generate_sitemap.sh (which checks the live URL) to build and publish a new sitemap.xml file..

Doing so requires ./generate_sitemap.sh to be run as soon as stuff is published to Github.. Therefore, it may help if we cache bust as much as possible with each deployment/publish.