nuke/lib
Jason Cameron 3683f95933
Add middleware to set Cache-Control header for challenge HTML (#132)
* Add middleware to set Cache-Control header for challenge HTML

* Add `NoStoreCache` middleware function in `internal/headers.go` to set Cache-Control: no-store header
* Apply `NoStoreCache` middleware in `cmd/anubis/main.go` to set Cache-Control header for challenge HTML

* docs: Add no-cache header information for challenge page

* docs: Update changelog to reflect no-store Cache-Control header addition for challenge page

* refactor: rename variable for clarity and update caching middleware in RenderIndex

* chore: move changes to the unreleased section

Signed-off-by: Jason Cameron <git@jasoncameron.dev>

---------

Signed-off-by: Jason Cameron <jasoncameron.all@gmail.com>
Signed-off-by: Jason Cameron <git@jasoncameron.dev>
2025-03-29 21:15:50 -04:00
..
policy Linting and staticcheck fixes. (#101) 2025-03-25 10:02:05 -04:00
anubis.go Add middleware to set Cache-Control header for challenge HTML (#132) 2025-03-29 21:15:50 -04:00
anubis_test.go Change how to make Anubis work without a reverse proxy (#86) 2025-03-28 13:38:34 -04:00
checkresult.go Refactor and split out things into cmd and lib (#77) 2025-03-22 18:44:49 -04:00
http.go Apply bits of the cookie settings PR one by one (#140) 2025-03-27 15:24:03 -04:00
random.go Refactor and split out things into cmd and lib (#77) 2025-03-22 18:44:49 -04:00