compress everything with gzip
This commit is contained in:
parent
2594d43843
commit
fa1d2ecd8f
|
@ -2,6 +2,7 @@ $LOAD_PATH << File.expand_path(File.dirname(__FILE__)) + '/'
|
||||||
require 'libs'
|
require 'libs'
|
||||||
|
|
||||||
use Rack::CommonLogger
|
use Rack::CommonLogger
|
||||||
|
use Rack::Deflater # compress with gzip
|
||||||
use Rack::Static, :urls => ['/public', '/images']
|
use Rack::Static, :urls => ['/public', '/images']
|
||||||
run Rack::URLMap.new({
|
run Rack::URLMap.new({
|
||||||
'/' => Blog,
|
'/' => Blog,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user