Discover Packages
github.com/golevi/cache-handler
validators
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 12, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
handlers
These functions decide if the request should be cached. They accept the parsed
config , a http.ResponseWriter , and a http.Request .
There are handlers for the following:
Expand ▾
Collapse ▴
Documentation
¶
Cookie compares the config cookie values against the ones sent by the request
and if one matches, we want to bypass the cache.
URI takes the config Bypass and checks those URIs against the current request
uri to see if it matches. If it does, we return true because we should bypass
this requeust.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.