Cache onboarding at edge (#6966)

This commit is contained in:
Ben Halpern 2020-03-31 10:12:14 -04:00 committed by GitHub
parent 2c49b34ebf
commit 22ffc7febc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,8 @@
class OnboardingsController < ApplicationController
before_action :authenticate_user!
before_action :set_cache_control_headers, only: %i[show]
def show; end
def show
set_surrogate_key_header "onboarding-slideshow"
end
end

View file

@ -2,3 +2,4 @@
CacheBuster.bust("/shell_top")
CacheBuster.bust("/shell_bottom")
CacheBuster.bust("/async_info/shell_version")
CacheBuster.bust("/onboarding")