Hi, Wojtek here. See the short list of changes from this past week.
Add compressor option to Active Record encryption
ActiveRecord::Encryption::Encryptor now supports a :compressor option to customize the compression algorithm used.
The default compressor is Zlib (as it was before).
Utilize Rack 3 streaming
Rack 3 introduced several features to enhance how streaming responses are handled, which Rails now benefits from.
Prefer ETag header over Last-Modified for cached responses
Add config.action_dispatch.strict_freshness configuration.
When set to true, the ETag header takes precedence over the Last-Modified header when both are present, as specified by the RFC 7232, section 6.
Defaults to false to maintain compatibility with previous versions of Rails, but is enabled as part of Rails 8.0 defaults.
Enhance Action View form helpers guide
With an ongoing effort to improve the Rails guides, another excellent update that can be previewed on the edge guides page was made.
You can view the whole list of changes here. We had 17 contributors to the Rails codebase this past week!
Until next time!
Subscribe to get these updates mailed to you.