mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Throttles use a cache key with a timestamp (Time.now.to_i/period), so a new cache key is used for each period. No longer set an explicit expiry on each cache key (though it may inherit a default expiry from the cache store). Also, set env['rack.attack.throttle_data'] with info about incremented (but not necessarily exceeded) throttles.
5 lines
60 B
Ruby
5 lines
60 B
Ruby
module Rack
|
|
module Attack
|
|
VERSION = '1.3.0'
|
|
end
|
|
end
|