cmd/packserver: update libs, add expiry404 option
The default Cache-Control header now becomes "no-cache". When the --expiry option is used, it only applies to HTTP 200 responses. There is a new --expiry404 option dessigned to allow for a short caching period of invalid paths, but allowing regular re-checking in case the asset becomes avaoilable in the future.
This commit is contained in:
parent
6c70ddce17
commit
7d96b5bdcb
3 changed files with 34 additions and 52 deletions
|
|
@ -1,15 +1,15 @@
|
|||
module src.lwithers.me.uk/go/htpack/cmd/packserver
|
||||
|
||||
go 1.22
|
||||
go 1.26.0
|
||||
|
||||
require (
|
||||
github.com/spf13/cobra v1.8.1
|
||||
src.lwithers.me.uk/go/htpack v1.3.3
|
||||
github.com/spf13/cobra v1.10.2
|
||||
src.lwithers.me.uk/go/htpack v1.5.0
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
golang.org/x/sys v0.22.0 // indirect
|
||||
github.com/spf13/pflag v1.0.10 // indirect
|
||||
golang.org/x/sys v0.47.0 // indirect
|
||||
google.golang.org/protobuf v1.36.12 // indirect
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue