httpcache: github.com/GeekyPanda/httpcache/cfg Index | Files

package cfg

import "github.com/GeekyPanda/httpcache/cfg"

Index

Package Files

cfg.go

Variables

var (
    FailStatus            = 400
    SuccessStatus         = 200
    ContentHTML           = "text/html; charset=utf-8"
    ContentTypeHeader     = "Content-Type"
    StatusCodeHeader      = "Status"
    QueryCacheKey         = "cache_key"
    QueryCacheDuration    = "cache_duration"
    QueryCacheStatusCode  = "cache_status_code"
    QueryCacheContentType = "cache_content_type"
    RequestCacheTimeout   = 5 * time.Second
)

The constants be used by both client and server

var MinimumCacheDuration = 2 * time.Second

MinimumCacheDuration is the minimum duration from time.Now which is allowed between cache save and cache clear

var NoCacheHeader = "X-No-Cache"

NoCacheHeader is the static header key which is setted to the response when NoCache is called, used inside nethttp and fhttp Skippers.

Package cfg imports 1 packages (graph). Updated 2017-04-12. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).