Skip to content

Instantly share code, notes, and snippets.

Bruno Pinto bpinto

Block or report user

Report or block bpinto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
guyboltonking / compressed_static_assets.rb
Created Mar 21, 2012
Slightly hacky rails middleware for serving up precompiled gzipped assets
View compressed_static_assets.rb
require 'action_dispatch/middleware/static'
module Middleware
class FileHandler < ActionDispatch::FileHandler
def initialize(root, assets_path, cache_control)
@assets_path = assets_path.chomp('/') + '/'
super(root, cache_control)
def match?(path)
You can’t perform that action at this time.