about summary refs log tree commit diff
path: root/config/initializers/cache_buster.rb
blob: 227e450f35c1e0df953995625f2f88e0ce7b35d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
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