Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Milan
diaspora
Commits
75277b4d
Commit
75277b4d
authored
May 24, 2012
by
Maxwell Salzberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gzip outgoing stuffs for great success
parent
33efa45e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
config.ru
config.ru
+1
-1
config/initializers/static_assets.rb
config/initializers/static_assets.rb
+1
-0
No files found.
config.ru
View file @
75277b4d
...
@@ -12,6 +12,6 @@ require ::File.expand_path('../lib/rack/chrome_frame', __FILE__)
...
@@ -12,6 +12,6 @@ require ::File.expand_path('../lib/rack/chrome_frame', __FILE__)
if
defined?
(
Unicorn
)
if
defined?
(
Unicorn
)
use
UnicornKiller
::
Oom
,
300
*
1024
use
UnicornKiller
::
Oom
,
300
*
1024
end
end
use
Rack
::
Deflater
use
Rack
::
ChromeFrame
,
:minimum
=>
8
use
Rack
::
ChromeFrame
,
:minimum
=>
8
run
Diaspora
::
Application
run
Diaspora
::
Application
config/initializers/static_assets.rb
View file @
75277b4d
...
@@ -4,4 +4,5 @@
...
@@ -4,4 +4,5 @@
Diaspora
::
Application
.
configure
do
Diaspora
::
Application
.
configure
do
config
.
serve_static_assets
=
AppConfig
[
:serve_static_assets
]
unless
AppConfig
[
:serve_static_assets
].
nil?
config
.
serve_static_assets
=
AppConfig
[
:serve_static_assets
]
unless
AppConfig
[
:serve_static_assets
].
nil?
# config.static_cache_control = "public, max-age=3600" if AppConfig[:serve_static_assets].to_s == 'true'
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment