Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2024 (2)
20082026
  1. …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.
  2. 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
  3. ▲ 2
    Show HN: Clace – Secure hypermedia web applications using Starlark and go
    story by ajayvk · 2023-10-18 · 0 comments