benbjohnson/hashfs
View on GitHub ↗ ★ 385 Go
Implementation of io/fs.FS that appends SHA256 hashes to filenames to allow for aggressive HTTP caching.
3 mentions on Hacker News by 1 person: 1 story, 2 comments · first 2023-10-18 · latest 2024-10-27
20082026
-
…which does actual file renames). It is possible to do it dynamically for file system files (see https://github.com/benbjohnson/hashfs for a embedFS implementation), but the database makes it a bit easier.
comment by ajayvk · 2024-10-27 · in Using SQLite as storage for web server static content -
An approach like https://github.com/benbjohnson/hashfs allows file names to be updated at runtime to be content hashed. This removes the need for the extra "304 Not Modified" API calls from the client. This content hash based file renaming…
comment by ajayvk · 2024-04-11 · in ETag and HTTP Caching -
▲ 2
Show HN: Clace – Secure hypermedia web applications using Starlark and gostory by ajayvk · 2023-10-18 · 0 comments