Skip to content

Commit

Permalink
Do not cache in development mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Oct 16, 2016
1 parent 7254835 commit 38300f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/application.rb
Expand Up @@ -10,13 +10,15 @@
use Rack::SslEnforcer, only_hosts: /\.herokuapp\.com$/
use SecureHeaders::Middleware
set :erb, trim: "-"
set :static_cache_control, [:public, :max_age => 86400]
# Look up Rack::Mime::MIME_TYPES to see rack defaults
mime_type :opensearch, "application/opensearchdescription+xml"
settings.add_charset << "application/atom+xml"
end

# development specific
configure :production do
set :static_cache_control, [:public, :max_age => 86400]
end

configure :development do
use BetterErrors::Middleware
BetterErrors.application_root = File.expand_path(".")
Expand Down

0 comments on commit 38300f9

Please sign in to comment.