Middleware for using pre-compressed gzip files based on regexp url pattern