Skip to content

v1.27

Compare
Choose a tag to compare
@pintsized pintsized released this 22 Nov 16:53
· 769 commits to master since this release

Features

  • Major data structure refactor to reduce the number of keys. If you wish to retain cache on upgrading, you must run migrations/1.26-1.27.lua
  • Introduced support for RFC5861 to control and improve stale content semantics
    Note: The old max_stale and stale_if_error configuration options have been removed, setting them will do nothing - use the Cache-Control extensions described in RFC5861 instead
  • Range requests which go upstream (fetching a partial yet cacheable response), will now trigger a background revalidation for the complete resource
  • Fixed no-cache=HEADER implementation (thanks @hamishforbes)

Tweaks

  • Added code coverage tests
  • All Redis keys for a cache entry are now touched on read, to help with LRU accuracy
  • Removed old (unused) state machine entries revealed by coverage tests
  • Changed all state machine events to be tail calls
  • We now return 525 in the event of SSL handshake failure (previously the request would be attempted on a closed socket)