Validate behaviour of cache
Opened this issue · 1 comments
ioquatix commented
require 'falcon/command'
Async do
endpoint = Falcon::Endpoint.parse("https://localhost:9293")
app = lambda{|env| [200, {}, ["Hello World #{rand}"]]}
middleware = Falcon::Server.middleware(app)
Async::HTTP::Server.new(middleware, endpoint).run
end
When reloading the page, the cache hit occurs and the random number is unchanged.
cc @tadman
ioquatix commented
We should augment the following code with comments directly to the RFC specification:
async-http-cache/lib/async/http/cache/general.rb
Lines 109 to 131 in 394ab8a