This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-19 08:38:06 -08:00
|
|
|
# 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'],
|
2023-08-17 23:18:40 -07:00
|
|
|
http_method: ENV['CACHE_BUSTER_HTTP_METHOD'] || 'GET',
|
2020-11-19 08:38:06 -08:00
|
|
|
}
|
|
|
|
end
|