diff --git a/config/environments/development.rb b/config/environments/development.rb index 42bbef4f7de..d1a1e61f20c 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -25,7 +25,7 @@ config.action_controller.enable_fragment_cache_logging = true config.cache_store = :mem_cache_store, - { compress: true, compression_min_size: 524_288 } + { compress: true, compression_min_size: 524_288, serializer: :json } config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{2.days.to_i}" } diff --git a/config/environments/production.rb b/config/environments/production.rb index 8d5862924f6..f8d8fca2a79 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -119,7 +119,8 @@ socket_failure_delay: 0.2, compress: true, compression_min_size: 524_288, - value_max_bytes: 2_097_152 # 2MB + value_max_bytes: 2_097_152, # 2MB + serializer: :json } config.middleware.use Gemcutter::Middleware::Redirector diff --git a/config/environments/staging.rb b/config/environments/staging.rb index f2a52cdfe87..6759c5733f2 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -103,7 +103,8 @@ socket_failure_delay: 0.2, compress: true, compression_min_size: 524_288, - value_max_bytes: 2_097_152 # 2MB + value_max_bytes: 2_097_152, # 2MB + serializer: :json } config.middleware.use Gemcutter::Middleware::Redirector