about summary refs log tree commit diff
path: root/config/initializers/cache_buster.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/cache_buster.rb')
-rw-r--r--config/initializers/cache_buster.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/initializers/cache_buster.rb b/config/initializers/cache_buster.rb
new file mode 100644
index 000000000..227e450f3
--- /dev/null
+++ b/config/initializers/cache_buster.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+Rails.application.configure do
+  config.x.cache_buster_enabled = ENV['CACHE_BUSTER_ENABLED'] == 'true'
+
+  config.x.cache_buster = {
+    secret_header: ENV['CACHE_BUSTER_SECRET_HEADER'],
+    secret: ENV['CACHE_BUSTER_SECRET'],
+  }
+end