FIX: properly specify default on no cache on all resources

This commit is contained in:
Sam
2016-11-15 17:00:28 +11:00
parent 5613c5f81a
commit 63d9d4f301
3 changed files with 9 additions and 0 deletions

View File

@ -529,6 +529,7 @@ describe TopicsController do
get :show, topic_id: topic.id, slug: topic.slug
expect(response).to be_success
expect(css_select("link[rel=canonical]").length).to eq(1)
expect(response.headers["Cache-Control"]).to eq("no-store, must-revalidate, no-cache, private")
end
end