package
12.2.11
Repository: https://github.com/kataras/iris.git
Documentation: pkg.go.dev

# Packages

Package ruleset provides the basics rules which are being extended by rules.

# Functions

Cache accepts the cache expiration duration.
Handler like `Cache` but returns an Iris Handler to be used as a middleware.
MaxAge is a shortcut to set a simple duration as a MaxAgeFunc.
WithKey sets a custom entry key for cached pages.

# Constants

ExpiresHeaderKey is the header key of "Expires".
ExpiresNeverHeaderValue is the header value of "ExpiresHeaderKey": "0".
PragmaHeaderKey is the header key of "Pragma".
PragmaNoCacheHeaderValue is the header value of "Pragma": "no-cache".

# Variables

Cache304 sends a `StatusNotModified` (304) whenever the "If-Modified-Since" request header (time) is before the time.Now() + expiresEvery (always compared to their UTC values).
CacheControlHeaderValue is the header value of the "Cache-Control": "private, no-cache, max-age=0, must-revalidate, no-store, proxy-revalidate, s-maxage=0".
DefaultMaxAge is a function which returns the `context#MaxAge` as time.Duration.
ETag is another browser & server cache request-response feature.
NoCache is a middleware which overrides the Cache-Control, Pragma and Expires headers in order to disable the cache during the browser's back and forward feature.
StaticCache middleware for caching static files by sending the "Cache-Control" and "Expires" headers to the client.