summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-02-11 09:29:23 +0000
committerLin Jen-Shin <godfat@godfat.org>2019-02-11 09:29:23 +0000
commit8886924ca9a6721c1df39818c3c6badc0625b40d (patch)
tree051afdd85ab4dc6212cd2071b963cc3e64c34fac /lib
parent1a1f28fe2ab0de454d0c3406a68d0c6fa3d39f60 (diff)
parent8ccf1ea3103719962c7f026307de72f2ade5fa4f (diff)
downloadgitlab-ce-8886924ca9a6721c1df39818c3c6badc0625b40d.tar.gz
Merge branch '57431-sprockets-caches-files-independent-of-content' into 'master'
Use correct integrity hash for sprockets caching Closes #57431 See merge request gitlab-org/gitlab-ce!25033
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/patch/sprockets_base_file_digest_key.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/patch/sprockets_base_file_digest_key.rb b/lib/gitlab/patch/sprockets_base_file_digest_key.rb
index 3925cdbbada..1c472638145 100644
--- a/lib/gitlab/patch/sprockets_base_file_digest_key.rb
+++ b/lib/gitlab/patch/sprockets_base_file_digest_key.rb
@@ -9,7 +9,7 @@ module Gitlab
def file_digest(path)
if stat = self.stat(path)
digest = self.stat_digest(path, stat)
- integrity_uri = self.hexdigest_integrity_uri(digest)
+ integrity_uri = self.integrity_uri(digest)
key = Sprockets::UnloadedAsset.new(path, self).file_digest_key(integrity_uri)
cache.fetch(key) do