History

Host MathML stylesheet in DevDocs

Thibaut Courouble committed 10 years ago

Commit a8bd4221 parent 4c28cb63 files · +218 −3Browse files

Showing the changes to lib (1 of 3 files). Show all

Unified · Split

lib/app.rb+2−1
@@ -80,11 +80,12 @@ class App < Sinatra::Application · 79 unmodified lines
80 use Rack::Deflater80 use Rack::Deflater
81 use Rack::Static,81 use Rack::Static,
82 root: 'public',82 root: 'public',
83 urls: %w(/assets /docs/ /images /favicon.ico /robots.txt /opensearch.xml /manifest.webapp),83 urls: %w(/assets /docs/ /images /favicon.ico /robots.txt /opensearch.xml /manifest.webapp /mathml.css),
84 header_rules: [84 header_rules: [
85 [:all, {'Cache-Control' => 'no-cache, max-age=0'}],85 [:all, {'Cache-Control' => 'no-cache, max-age=0'}],
86 ['/assets', {'Cache-Control' => 'public, max-age=604800'}],86 ['/assets', {'Cache-Control' => 'public, max-age=604800'}],
87 ['/favicon.ico', {'Cache-Control' => 'public, max-age=86400'}],87 ['/favicon.ico', {'Cache-Control' => 'public, max-age=86400'}],
88 ['/mathml.css', {'Cache-Control' => 'public, max-age=604800'}],
88 ['/images', {'Cache-Control' => 'public, max-age=86400'}] ]89 ['/images', {'Cache-Control' => 'public, max-age=86400'}] ]
89 90
90 sprockets.js_compressor = Uglifier.new output: { beautify: true, indent_level: 0 }91 sprockets.js_compressor = Uglifier.new output: { beautify: true, indent_level: 0 }