chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
30 stars 4 forks source link

Add a timestamp as a parameter to URLs used to load static files like stylesheets #199

Closed christianp closed 1 year ago

christianp commented 1 year ago

The browser might cache stylesheets and JS files, so won't download them again after you re-build a package. Adding a timestamp as a query parameter to the URL used to load the file would force it to download the file again each time the package is built.

christianp commented 1 year ago

I didn't check this carefully enough - the code to load pyodide is in JS, and doesn't expect the static files url to end with a query parameter.

christianp commented 1 year ago

Fixed by ddc3d6690b3dfb0aa7917cb048db17872eb3fb75