{"modulePath":"github.com/WinPooh32/git","version":"v1.24.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpcache\n\n## Functions\n\n```go\nfunc HandleGenericETagCache(req *http.Request, w http.ResponseWriter, etag string) (handled bool)\n```\nHandleGenericETagCache handles ETag-based caching for a HTTP request. It returns true if the request was handled.\n\n```go\nfunc HandleGenericETagTimeCache(req *http.Request, w http.ResponseWriter, etag string, lastModified *time.Time) (handled bool)\n```\nHandleGenericETagTimeCache handles ETag-based caching with Last-Modified caching for a HTTP request. It returns true if the request was handled.\n\n```go\nfunc SetCacheControlInHeader(h http.Header, opts *CacheControlOptions)\n```\nSetCacheControlInHeader sets suitable cache-control headers in the response\n\n## Types\n\n```go\ntype CacheControlOptions struct {\n\tIsPublic    bool\n\tMaxAge      time.Duration\n\tNoTransform bool\n}\n```\n\n```go\nfunc CacheControlForPrivateStatic() *CacheControlOptions\n```\n\n```go\nfunc CacheControlForPublicStatic() *CacheControlOptions\n```\n\n","path":"github.com/WinPooh32/git/httpcache","name":"httpcache","synopsis":"","isRedistributable":true}
