package
10.7.0+incompatible
Repository: https://github.com/eryx/iris.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Package ruleset provides the basics rules which are being extended by rules.
No description provided by the author

# Functions

Cache accepts the cache expiration duration if the expiration <=2 seconds then expiration is taken by the "cache-control's maxage" header returns context.Handler, which you can use as your default router or per-route handler All types of response can be cached, templates, json, text, anything.
Handler accepts one single parameter: the cache expiration duration if the expiration <=2 seconds then expiration is taken by the "cache-control's maxage" header returns context.Handler.

# 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".
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.