mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 15:05:00 +00:00
Conditional GET cache for periodic data sources. Persists ETag and Last-Modified to a .meta sidecar so 304s survive process restarts. Two independent rate-limit gates (MaxAge file-mtime, MinInterval in-memory). Body cap via MaxBytes defends against fill-disk from a hostile upstream or redirect target. Authorization (and any caller-supplied) headers stripped on every redirect hop. Userinfo in URL is redacted from error messages.
6 lines
99 B
Modula-2
6 lines
99 B
Modula-2
module github.com/therootcompany/golib/net/httpcache
|
|
|
|
go 1.26.0
|
|
|
|
require golang.org/x/sync v0.20.0
|