Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleETag ¶
func HandleETag(ctx context.Context, reqRes httptrip.RoundTripper, maxAgeSeconds time.Duration, httpStatus int)
handleETag passes through the http status and response if the cache is stale (or does not yet exist). If the cache is fresh and a success case with non-empty body, this will return 304 Not Modified with an empty body.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.