Expand description
Utility functions to help process HTTP headers for caching
Modules§
- upstream
- Filters to run when sending requests to upstream
Functions§
- calculate_
expires_ header_ time - Calculate the expire time from the
Expires
header only - calculate_
fresh_ until - Calculate the SystemTime at which the asset expires
- calculate_
serve_ stale_ sec - Calculates stale-while-revalidate and stale-if-error seconds from Cache-Control or the CacheMetaDefaults.
- request_
cacheable - Decide if the request can be cacheable
- resp_
cacheable - Decide if the response is cacheable.