Thanks to visit codestin.com
Credit goes to github.com

Skip to content

http server shoud set valid http max-age for caching #1823

@miekg

Description

@miekg

This is currently hardcoded:

	w.Header().Set("Cache-Control", "max-age=128") // TODO(Minttl as done in cache.

This should use the minttl logic from the cache package which should be factored out into a pkg/ttl package or something.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions