cache control header on content endpoint

This commit is contained in:
2026-11-13 13:09:15 -05:00
parent 3f78e3b85b
commit 0f5b85a063
3 changed files with 17 additions and 9 deletions
+10 -8
View File
@@ -14,15 +14,14 @@ goals:
- moderable (reports, mime type filtering, hash ban, etc)
- complete no javascript support
# roadmap/todo
- [x] upload endpoint
- [x] content endpoint
- [ ] update last accessed at
- use a memory cache and batch commit to database to keep performance
- [ ] add cache control headers
- [ ] add a config option to put the endpoint on another path, such as `/f/{id}`
- allowing more specific caching options through reverse proxies like cloudflare
- [ ] update last accessed at
- use a memory cache and batch commit to database to keep performance
- [x] add cache control headers
- [x] delete content endpoints
- [ ] paste page
- [ ] return a page for nojs clients, such as on delete or upload
@@ -33,10 +32,13 @@ goals:
- [ ] prometheus metrics
- [x] [switch mime type detection library](https://git.whoswhip.dev/whoswhip/minibin/src/commit/47518993577f94d7cf9c0743042d2ac133055924/handlers.go#L273-L276)
- [ ] ratelimits
- [ ] simplify rendering & serving pages (too much duplicate code rn)
## misc goals
- [x] link to this git repo on home page
- [ ] maybe keep nojs and js on the same page?
- just use javascript to enhance the experience, like progress, drag and drop
- [ ] shareX config download handlers (automatically create based off of config)
- just use javascript to enhance the experience, like progress, drag and drop
- [ ] shareX config download handlers (automatically create based off of config)
- [ ] add a config option to put the endpoint on another path, such as `/f/{id}`
- allowing more specific caching options through reverse proxies like cloudflare