diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2017-02-07 18:06:08 +0100 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-01 16:48:01 +0100 |
commit | 61c9604721dbda53eb4a7111d16c1b19292f9766 (patch) | |
tree | 5cdce583a6c0f8984efbaf3a0b6a3fab33c0b113 /config | |
parent | 0a31efb57768345e2b3350a493021a26b54994a3 (diff) | |
download | gitlab-ce-61c9604721dbda53eb4a7111d16c1b19292f9766.tar.gz |
Add middleware for ETag caching with Redis
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/etag_caching.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/etag_caching.rb b/config/initializers/etag_caching.rb new file mode 100644 index 00000000000..eba88801141 --- /dev/null +++ b/config/initializers/etag_caching.rb @@ -0,0 +1,4 @@ +# This middleware has to come after Gitlab::Metrics::RackMiddleware +# in the middleware stack, because it tracks events with +# GitLab Performance Monitoring +Rails.application.config.middleware.use(Gitlab::EtagCaching::Middleware) |