discourse/lib/middleware
Sam Saffron 62141b6316 FEATURE: enable_performance_http_headers for performance diagnostics
This adds support for DISCOURSE_ENABLE_PERFORMANCE_HTTP_HEADERS
when set to `true` this will turn on performance related headers

```text
X-Redis-Calls: 10     # number of redis calls
X-Redis-Time: 1.02    # redis time in seconds
X-Sql-Commands: 102   # number of SQL commands
X-Sql-Time: 1.02      # duration in SQL in seconds
X-Queue-Time: 1.01    # time the request sat in queue (depends on NGINX)
```

To get queue time NGINX must provide: HTTP_X_REQUEST_START

We do not recommend you enable this without thinking, it exposes information
about what your page is doing, usually you would only enable this if you
intend to strip off the headers further down the stream in a proxy
2019-06-05 16:08:11 +10:00
..
anonymous_cache.rb FIX: use crawler layout when saving url in Wayback Machine (#7667) 2019-06-03 12:13:32 +10:00
discourse_public_exceptions.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
enforce_hostname.rb SECURITY: enforce hostname to match discourse hostname 2018-11-15 15:23:06 +11:00
missing_avatars.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
omniauth_bypass_middleware.rb FEATURE: Allow connecting associated accounts when two-factor is enabled (#6754) 2018-12-11 13:19:00 +00:00
request_tracker.rb FEATURE: enable_performance_http_headers for performance diagnostics 2019-06-05 16:08:11 +10:00
turbo_dev.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00