gitea: code.gitea.io/gitea/modules/httpcache Index | Files

package httpcache

import "code.gitea.io/gitea/modules/httpcache"

Index

Package Files

httpcache.go

func GetCacheControl Uses

func GetCacheControl() string

GetCacheControl returns a suitable "Cache-Control" header value

func HandleEtagCache Uses

func HandleEtagCache(req *http.Request, w http.ResponseWriter, fi os.FileInfo) (handled bool)

HandleEtagCache handles ETag-based caching for a HTTP request

func HandleTimeCache Uses

func HandleTimeCache(req *http.Request, w http.ResponseWriter, fi os.FileInfo) (handled bool)

HandleTimeCache handles time-based caching for a HTTP request

Package httpcache imports 7 packages (graph) and is imported by 2 packages. Updated 2021-01-22. Refresh now. Tools for package owners.