diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-03-03 19:59:47 +0300 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-03-03 19:59:47 +0300 |
commit | fc90d9e5896cdcccedb697fd4536f126d10f3f8e (patch) | |
tree | f6b26659982f737e0e8bbc28929bde43325b48de /app/controllers/projects/raw_controller.rb | |
parent | 00cb4a97147a8f760d37c5f6fae11f93ba4ede34 (diff) |
Tell clients/proxies to cache raw blob requests
Diffstat (limited to 'app/controllers/projects/raw_controller.rb')
-rw-r--r-- | app/controllers/projects/raw_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/raw_controller.rb b/app/controllers/projects/raw_controller.rb index d9723acb1d9..b6ff08262d7 100644 --- a/app/controllers/projects/raw_controller.rb +++ b/app/controllers/projects/raw_controller.rb @@ -12,6 +12,8 @@ class Projects::RawController < Projects::ApplicationController if @blob headers['X-Content-Type-Options'] = 'nosniff' + check_etag! + set_cache_headers if @blob.lfs_pointer? send_lfs_object |