a little bit faster cache recycle

This commit is contained in:
Kyle Drake 2015-02-27 12:10:29 -08:00
parent e1ef255f84
commit 314e67adcd

View file

@ -2,12 +2,12 @@ require 'net/http'
require 'uri' require 'uri'
get '/blog/?' do get '/blog/?' do
expires 500, :public, :must_revalidate expires 60, :public, :must_revalidate
return Net::HTTP.get_response(URI('http://blog.neocities.org')).body return Net::HTTP.get_response(URI('http://blog.neocities.org')).body
end end
get '/blog/:article' do |article| get '/blog/:article' do |article|
expires 500, :public, :must_revalidate expires 60, :public, :must_revalidate
attempted = false attempted = false