zola/components/site
Hannu Hartikainen 36ec33f042
Change get_url(cachebust=true) to use a hash (#1032)
Cache-busting was previously done with a compile-time timestamp. Change
to the SHA-256 hash of the file to avoid refreshing unchanged files.

The implementation could be used to add a new global fn (say,
get_file_hash) for subresource integrity use, but that's for another
commit.

Fixes #519.

Co-authored-by: Vincent Prouillet <balthek@gmail.com>
2020-05-23 11:46:50 +02:00
..
benches Fix tests + rustfmt 2020-04-22 10:07:17 +02:00
src Change get_url(cachebust=true) to use a hash (#1032) 2020-05-23 11:46:50 +02:00
tests Fix tests + rustfmt 2020-04-22 10:07:17 +02:00
Cargo.toml Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00