* Initial work for streaming app shell way of using serviceworkers * Close in on serviceworker adjustment finalization * Add docs and loading indicator * Remove useless code * Don't run on API * Update app/javascript/contentDisplayPolicy/hideBlockedContent.js * Fix small details * Don't run serviceworker.js code in test env * Fix JS in serviceworker * Move private keyword to proper place in async controller * Change shell_version to HEROKU_SLUG_COMMIT * Update caching config * Add test for async_info/shell_version
7 lines
421 B
Ruby
7 lines
421 B
Ruby
FastlyRails.configure do |c|
|
|
c.api_key = ApplicationConfig["FASTLY_API_KEY"] # Fastly api key, required
|
|
c.max_age = 1.day.to_i # time in seconds, optional, defaults to 2592000 (30 days)
|
|
c.service_id = ApplicationConfig["FASTLY_SERVICE_ID"] # Fastly service you will be using, required
|
|
c.stale_if_error = 26_400
|
|
c.purging_enabled = Rails.env.production? # No need to configure a client locally (since 0.4.0)
|
|
end
|