mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
a little bit faster cache recycle
This commit is contained in:
parent
e1ef255f84
commit
314e67adcd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue