kong icon indicating copy to clipboard operation
kong copied to clipboard

Implements `stale-while-revalidate` and `s-maxage`

Open utix opened this issue 4 years ago • 1 comments

Summary

Improve proxy cache plugin to support stale-while-revalidate and s-maxage

Full changelog

stale-while-revalidate

stale-while-revalidate indicates that caches MAY serve the response in which it appears after it becomes stale, up to the indicated number of seconds.

See RFC 5861

s-maxage

s-maxage indicates that, in shared caches, the maximum age specified by this directive overrides the maximum age specified by either:

  • the max-age directive or
  • the Expires header field.

See RFC 7234

utix avatar Sep 14 '21 09:09 utix

@bungle sorry to ping, Should I improve this PR ? Is something missing ?

utix avatar Nov 12 '21 13:11 utix

Closing because of lack of activity. We would like to accept this contribution if anyone wishes to pick this back up.

hbagdi avatar Oct 25 '22 22:10 hbagdi