rails: enable Server-Timing HTTP header in production.

This returns a Server-Timing header on all HTTP responses, which
includes details on how long it took the server to render the response.
Browsers can show this timing information in the devtools. In Chrome, go
to the Network panel, then click a HTTP request, then click the Timing tab.
This commit is contained in:
evazion
2022-01-07 20:34:22 -06:00
parent 87dfc66073
commit 841990709d

View File

@@ -16,6 +16,9 @@ Rails.application.configure do
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Enable server timing
config.server_timing = true
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
# config.require_master_key = true