Obsidian Publish: Cache busting for publish.css, publish.js

Use case or problem

Often custom publish.css and publish.js are cached in the browser and require asking end-users to clean the cache, which is undesired.

Proposed solution

Add timestamp of the files, to force cache busting

<link rel="stylesheet" href="https://SERVER_URL/publish.css?ts=TIMESTAMP" as="style" onload="this.onload=null;this.rel='stylesheet'">
<link rel="preload" href="https://SERVER_URL/publish.js?ts=TIMESTAMP" as="script">

Current workaround (optional)

N/A