Skip to main content

Module filters

Module filters 

Source
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_durations
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.