docbrown/app/controllers/shell_controller.rb
Ben Halpern 7684c1e8b9
Add edge caching to shell (#5146) [deploy]
* Add edge caching to shell

* Add tests for shell
2019-12-16 19:08:59 -05:00

17 lines
344 B
Ruby

class ShellController < ApplicationController
before_action :set_cache_control_headers, only: %i[top bottom]
layout false
def top
@shell = true
set_surrogate_key_header "shell-top"
render partial: "top"
end
def bottom
@shell = true
set_surrogate_key_header "shell-bottom"
render partial: "bottom"
end
end