rage-rb / rage

Fast web framework compatible with Rails.
MIT License
803 stars 12 forks source link

Static file server #100

Closed rsamoilov closed 2 months ago

rsamoilov commented 3 months ago

Static file server

Description

This adds the ability for Rage apps to serve static assets from the public folder.

Usage

Enable the feature using the public_file_server configuration:

  Rage.configure do
    config.public_file_server.enabled = true
  end

Features

Benchmark

wrk http://localhost:3000/assets/40kb.js.gz

Rails: 8719 RPS Rage: 22980 RPS

rsamoilov commented 3 months ago

@nikki-dev-s This will go into the 1.9.0 release.