Discover Packages
github.com/golevi/cache-handler
handlers
package
Version:
v0.1.0-alpha.7
Opens a new window with list of versions in this module.
Published: Mar 6, 2021
License: MIT
Opens a new window with license information.
Imports: 4
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.
Method checks the config methods we should cache against the request method
and determines whether or not this request should be cached.
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.