public
Description: Rails plugin for picking a non-ssl asset host as often as possible
Homepage:
Clone URL: git://github.com/dhh/asset-hosting-with-minimum-ssl.git
100644 21 lines (12 sloc) 0.696 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
AssetHostingWithMinimumSsl
==========================
 
It's slow to serve assets that doesn't need to be secure over SSL. This plugin will let you send assets over non-SSL as often as possible.
 
Note: This plugin requires Rails with a revision of 229f959d15e451890db60dbb73f8565079977814 or newer (Nov 27, 2008).
 
 
Example
=======
 
In your config/production.rb
 
config.action_controller.asset_host = AssetHostingWithMinimumSsl.new(
  "http://assets%d.example.com", # will serve non-SSL assetts on http://assets[1-4].example.com
  "https://assets1.example.com" # will serve SSL assets on https://assets1.example.com
)
 
 
Copyright (c) 2008 David Heinemeier Hansson, released under the MIT license