mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
Refactor Cache-Control and Vary definitions (#24347)
This commit is contained in:
@@ -15,6 +15,12 @@ describe Api::BaseController do
|
||||
end
|
||||
end
|
||||
|
||||
it 'returns private cache control headers by default' do
|
||||
routes.draw { get 'success' => 'api/base#success' }
|
||||
get :success
|
||||
expect(response.headers['Cache-Control']).to include('private, no-store')
|
||||
end
|
||||
|
||||
describe 'forgery protection' do
|
||||
before do
|
||||
routes.draw { post 'success' => 'api/base#success' }
|
||||
|
||||
Reference in New Issue
Block a user