aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/routes/ui/mod.rs')
-rw-r--r--server/src/routes/ui/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/routes/ui/mod.rs b/server/src/routes/ui/mod.rs
index af8cf10..3a006a9 100644
--- a/server/src/routes/ui/mod.rs
+++ b/server/src/routes/ui/mod.rs
@@ -68,6 +68,7 @@ pub struct CacheControlFile(File, String);
impl CacheControlFile {
pub async fn new(f: File) -> Self {
let meta = f.metadata().await.unwrap();
+ // TODO ETag should be cache path (or something like that) so federation clients can dedup assets
let modified = meta.mtime();
let mut h = DefaultHasher::new();
modified.hash(&mut h);