1
0

cache_buster.rb 324 B

1234567891011
  1. # frozen_string_literal: true
  2. Rails.application.configure do
  3. config.x.cache_buster_enabled = ENV['CACHE_BUSTER_ENABLED'] == 'true'
  4. config.x.cache_buster = {
  5. secret_header: ENV['CACHE_BUSTER_SECRET_HEADER'],
  6. secret: ENV['CACHE_BUSTER_SECRET'],
  7. http_method: ENV['CACHE_BUSTER_HTTP_METHOD'] || 'GET',
  8. }
  9. end