Showing the changes to lib (1 of 3 files). Show all
Unified · Split
| @@ -80,11 +80,12 @@ class App < Sinatra::Application · 79 unmodified lines | |||
| 80 | use Rack::Deflater | 80 | 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 } |